]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gio: one more fix for GActionGroup.list_actions()
authorRyan Lortie <desrt@desrt.ca>
Mon, 14 Mar 2011 15:10:46 +0000 (11:10 -0400)
committerRyan Lortie <desrt@desrt.ca>
Mon, 14 Mar 2011 15:10:46 +0000 (11:10 -0400)
We must explicitly specify that the array is null-terminated.

vapi/gio-2.0.vapi
vapi/packages/gio-2.0/gio-2.0.metadata

index 80dee76e4a2428419197d8b6424305b83f55854f..7b606cfcdcb3ecaabcfeff2ef6824f04718f08d2 100644 (file)
@@ -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);
index 823021e44f11f25d2224c787d968323f904663d7..0e85599d602020c5fd8ec7b5edd9feb784e35684 100644 (file)
@@ -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"