Commit 7b05969a authored by Allison Karlitskaya's avatar Allison Karlitskaya

gio: one more fix for GActionGroup.list_actions()

We must explicitly specify that the array is null-terminated.
parent c81b1767
......@@ -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);
......
......@@ -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"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment