[vala] gio: fix binding for GActionGroup.list_actions()
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] gio: fix binding for GActionGroup.list_actions()
- Date: Mon, 14 Mar 2011 14:57:25 +0000 (UTC)
commit c81b1767a709037500b1a5569475bbe6a9e3cea9
Author: Ryan Lortie <desrt desrt ca>
Date: Mon Mar 14 10:55:18 2011 -0400
gio: fix binding for GActionGroup.list_actions()
vapigen was detecting
gchar ** g_action_group_list_actions (GActionGroup *action_group);
as
public abstract unowned string list_actions ();
Add some metadata to clear that up and regenerate the vapi.
vapi/gio-2.0.vapi | 3 ++-
vapi/packages/gio-2.0/gio-2.0.metadata | 1 +
2 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/vapi/gio-2.0.vapi b/vapi/gio-2.0.vapi
index 9d281da..80dee76 100644
--- a/vapi/gio-2.0.vapi
+++ b/vapi/gio-2.0.vapi
@@ -1636,7 +1636,8 @@ 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);
- public abstract unowned string list_actions ();
+ [CCode (array_length = false)]
+ public abstract string[] list_actions ();
[HasEmitter]
public signal void action_added (string action_name);
[HasEmitter]
diff --git a/vapi/packages/gio-2.0/gio-2.0.metadata b/vapi/packages/gio-2.0/gio-2.0.metadata
index 3b1125c..823021e 100644
--- a/vapi/packages/gio-2.0/gio-2.0.metadata
+++ b/vapi/packages/gio-2.0/gio-2.0.metadata
@@ -292,6 +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_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]