[vala] gio: one more fix for GActionGroup.list_actions()



commit 7b05969ab41470107e20d12e0d742598c14ef1cc
Author: Ryan Lortie <desrt desrt ca>
Date:   Mon Mar 14 11:10:46 2011 -0400

    gio: one more fix for GActionGroup.list_actions()
    
    We must explicitly specify that the array is null-terminated.

 vapi/gio-2.0.vapi                      |    2 +-
 vapi/packages/gio-2.0/gio-2.0.metadata |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/vapi/gio-2.0.vapi b/vapi/gio-2.0.vapi
index 80dee76..7b606cf 100644
--- a/vapi/gio-2.0.vapi
+++ b/vapi/gio-2.0.vapi
@@ -1636,7 +1636,7 @@ namespace GLib {
 		public abstract unowned GLib.Variant get_action_state_hint (string action_name);
 		public abstract unowned GLib.VariantType get_action_state_type (string action_name);
 		public abstract bool has_action (string action_name);
-		[CCode (array_length = false)]
+		[CCode (array_length = false, array_null_terminated = true)]
 		public abstract string[] list_actions ();
 		[HasEmitter]
 		public signal void action_added (string action_name);
diff --git a/vapi/packages/gio-2.0/gio-2.0.metadata b/vapi/packages/gio-2.0/gio-2.0.metadata
index 823021e..0e85599 100644
--- a/vapi/packages/gio-2.0/gio-2.0.metadata
+++ b/vapi/packages/gio-2.0/gio-2.0.metadata
@@ -292,7 +292,7 @@ GActionGroup::action_added has_emitter="1"
 GActionGroup::action_removed has_emitter="1"
 GActionGroup::action_enabled_changed has_emitter="1"
 GActionGroup::action_state_changed has_emitter="1"
-g_action_group_list_actions is_array="1" transfer_ownership="1" no_array_length="1"
+g_action_group_list_actions is_array="1" transfer_ownership="1" no_array_length="1" array_null_terminated="1"
 
 g_cancellable_set_error_if_cancelled error_types="IOError"
 g_cancellable_connect.callback type_name="GLib.Func<GLib.Cancellable>" ctype="GCallback*" transfer_ownership="1"



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