[gtk-vnc/f18] Fix send_key introspection bindings

Cole Robinson crobinso at fedoraproject.org
Sat Feb 16 20:41:34 UTC 2013


commit 297059bbf21a0447b9e3ddf2d4073aab7d3bdb6c
Author: Cole Robinson <crobinso at redhat.com>
Date:   Sat Feb 16 15:41:29 2013 -0500

    Fix send_key introspection bindings

 ...ection-annotation-for-vnc_display_send_ke.patch |   40 ++++++++++++++++++++
 gtk-vnc.spec                                       |    8 +++-
 2 files changed, 47 insertions(+), 1 deletions(-)
---
diff --git a/0001-Add-introspection-annotation-for-vnc_display_send_ke.patch b/0001-Add-introspection-annotation-for-vnc_display_send_ke.patch
new file mode 100644
index 0000000..9f93daa
--- /dev/null
+++ b/0001-Add-introspection-annotation-for-vnc_display_send_ke.patch
@@ -0,0 +1,40 @@
+From 2c0c674392c9ed51b9679262f114c49dbfdab0f6 Mon Sep 17 00:00:00 2001
+Message-Id: <2c0c674392c9ed51b9679262f114c49dbfdab0f6.1361045108.git.crobinso at redhat.com>
+From: Cole Robinson <crobinso at redhat.com>
+Date: Thu, 31 Jan 2013 10:16:20 +0000
+Subject: [PATCH] Add introspection annotation for vnc_display_send_keys
+
+The vnc_display_send_keys method signature is too complex
+to be interpreted correctly without some annotations.
+
+https://bugzilla.gnome.org/show_bug.cgi?id=691821
+
+Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
+---
+ src/vncdisplay.c | 10 ++++++++++
+ 1 file changed, 10 insertions(+)
+
+diff --git a/src/vncdisplay.c b/src/vncdisplay.c
+index 5c0e994..14df066 100644
+--- a/src/vncdisplay.c
++++ b/src/vncdisplay.c
+@@ -1615,6 +1615,16 @@ VncConnection * vnc_display_get_connection(VncDisplay *obj)
+ }
+ 
+ 
++/**
++ * vnc_display_send_keys:
++ *
++ * @obj: The #VncDisplay
++ * @keyvals: (array length=nkeyvals): Keyval array
++ * @nkeyvals: Length of keyvals
++ *
++ * Send keyval click events to the display.
++ *
++ */
+ void vnc_display_send_keys(VncDisplay *obj, const guint *keyvals, int nkeyvals)
+ {
+     vnc_display_send_keys_ex(obj, keyvals,
+-- 
+1.8.1.2
+
diff --git a/gtk-vnc.spec b/gtk-vnc.spec
index d164460..41d9d1b 100644
--- a/gtk-vnc.spec
+++ b/gtk-vnc.spec
@@ -24,10 +24,12 @@
 Summary: A GTK2 widget for VNC clients
 Name: gtk-vnc
 Version: 0.5.1
-Release: 5%{?dist}%{?extra_release}
+Release: 6%{?dist}%{?extra_release}
 License: LGPLv2+
 Group: Development/Libraries
 Source: http://ftp.gnome.org/pub/GNOME/sources/%{name}/0.5/%{name}-%{version}.tar.xz
+# Fix send_key introspection bindings
+Patch1: 0001-Add-introspection-annotation-for-vnc_display_send_ke.patch
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 URL: http://live.gnome.org/gtk-vnc
 Requires: gvnc = %{version}-%{release}
@@ -182,6 +184,7 @@ Libraries, includes, etc. to compile with the gtk-vnc library
 %setup -q -n gtk-vnc-%{version} -c
 pushd gtk-vnc-%{version}
 %patch0 -p1 -b .bigendian
+%patch1 -p1
 popd
 %if %{with_gtk3}
 cp -a gtk-vnc-%{version} gtk-vnc2-%{version}
@@ -367,6 +370,9 @@ rm -fr %{buildroot}
 %endif
 
 %changelog
+* Sat Feb 16 2013 Cole Robinson <crobinso at redhat.com> - 0.5.1-6
+- Fix send_key introspection bindings
+
 * Mon Dec 10 2012 Adam Jackson <ajax at redhat.com> 0.5.1-5
 - gtk-vnc-0.5.1-bigendian.patch: Fix pixel swizzling on big-endian.
 


More information about the scm-commits mailing list