[vala/0.12] gdk-2.0, gdk-3.0: Fix Keymap.get_entries_for_keycode binding



commit 73d57c3b3d7d25d84be74246a1036cb0f8a03fd1
Author: Luca Bruno <lucabru src gnome org>
Date:   Sat Apr 30 17:28:15 2011 +0200

    gdk-2.0, gdk-3.0: Fix Keymap.get_entries_for_keycode binding
    
    Fixes bug 649013.

 vapi/gdk-2.0.vapi                      |    2 +-
 vapi/gdk-3.0.vapi                      |    2 +-
 vapi/packages/gdk-2.0/gdk-2.0.metadata |    5 +++--
 vapi/packages/gdk-3.0/gdk-3.0.metadata |    5 +++--
 4 files changed, 8 insertions(+), 6 deletions(-)
---
diff --git a/vapi/gdk-2.0.vapi b/vapi/gdk-2.0.vapi
index e89808e..ac2ebe5 100644
--- a/vapi/gdk-2.0.vapi
+++ b/vapi/gdk-2.0.vapi
@@ -408,7 +408,7 @@ namespace Gdk {
 		public bool get_caps_lock_state ();
 		public static unowned Gdk.Keymap get_default ();
 		public Pango.Direction get_direction ();
-		public bool get_entries_for_keycode (uint hardware_keycode, out unowned Gdk.KeymapKey[] keys, out unowned uint[] keyvals, int n_entries);
+		public bool get_entries_for_keycode (uint hardware_keycode, [CCode (array_length = false)] out Gdk.KeymapKey[] keys, [CCode (array_length = false)] out uint[] keyvals, out int n_entries);
 		public bool get_entries_for_keyval (uint keyval, out unowned Gdk.KeymapKey[] keys);
 		public static unowned Gdk.Keymap get_for_display (Gdk.Display display);
 		public bool have_bidi_layouts ();
diff --git a/vapi/gdk-3.0.vapi b/vapi/gdk-3.0.vapi
index c46bf85..3f48b73 100644
--- a/vapi/gdk-3.0.vapi
+++ b/vapi/gdk-3.0.vapi
@@ -227,7 +227,7 @@ namespace Gdk {
 		public bool get_caps_lock_state ();
 		public static unowned Gdk.Keymap get_default ();
 		public Pango.Direction get_direction ();
-		public bool get_entries_for_keycode (uint hardware_keycode, out unowned Gdk.KeymapKey[] keys, out unowned uint[] keyvals, int n_entries);
+		public bool get_entries_for_keycode (uint hardware_keycode, [CCode (array_length = false)] out Gdk.KeymapKey[] keys, [CCode (array_length = false)] out uint[] keyvals, out int n_entries);
 		public bool get_entries_for_keyval (uint keyval, out unowned Gdk.KeymapKey[] keys);
 		public static unowned Gdk.Keymap get_for_display (Gdk.Display display);
 		public bool get_num_lock_state ();
diff --git a/vapi/packages/gdk-2.0/gdk-2.0.metadata b/vapi/packages/gdk-2.0/gdk-2.0.metadata
index df5140b..379cee8 100644
--- a/vapi/packages/gdk-2.0/gdk-2.0.metadata
+++ b/vapi/packages/gdk-2.0/gdk-2.0.metadata
@@ -65,8 +65,9 @@ gdk_init.argc hidden="1"
 gdk_init.argv is_array="1" is_ref="1" array_length_pos="0.9"
 gdk_init_check.argc hidden="1"
 gdk_init_check.argv is_array="1" is_ref="1" array_length_pos="0.9"
-gdk_keymap_get_entries_for_keycode.keys is_array="1" is_out="1"
-gdk_keymap_get_entries_for_keycode.keyvals is_array="1" is_out="1"
+gdk_keymap_get_entries_for_keycode.keys is_array="1" is_out="1" transfer_ownership="1" no_array_length="1"
+gdk_keymap_get_entries_for_keycode.keyvals is_array="1" is_out="1" transfer_ownership="1" no_array_length="1"
+gdk_keymap_get_entries_for_keycode.n_entries is_out="1"
 gdk_keymap_get_entries_for_keyval.keys is_array="1" is_out="1"
 GdkKeymapKey is_value_type="1"
 GdkNativeWindow is_value_type="1" simple_type="1"
diff --git a/vapi/packages/gdk-3.0/gdk-3.0.metadata b/vapi/packages/gdk-3.0/gdk-3.0.metadata
index 17174ab..c293f71 100644
--- a/vapi/packages/gdk-3.0/gdk-3.0.metadata
+++ b/vapi/packages/gdk-3.0/gdk-3.0.metadata
@@ -64,8 +64,9 @@ gdk_init.argc hidden="1"
 gdk_init.argv is_array="1" is_ref="1" array_length_pos="0.9"
 gdk_init_check.argc hidden="1"
 gdk_init_check.argv is_array="1" is_ref="1" array_length_pos="0.9"
-gdk_keymap_get_entries_for_keycode.keys is_array="1" is_out="1"
-gdk_keymap_get_entries_for_keycode.keyvals is_array="1" is_out="1"
+gdk_keymap_get_entries_for_keycode.keys is_array="1" is_out="1" transfer_ownership="1" no_array_length="1"
+gdk_keymap_get_entries_for_keycode.keyvals is_array="1" is_out="1" transfer_ownership="1" no_array_length="1"
+gdk_keymap_get_entries_for_keycode.n_entries is_out="1"
 gdk_keymap_get_entries_for_keyval.keys is_array="1" is_out="1"
 GdkKeymapKey is_value_type="1"
 GdkNativeWindow is_value_type="1" simple_type="1"



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]