From: Michal Hruby Date: Tue, 20 Jul 2010 19:23:56 +0000 (+0200) Subject: gtk+-2.0, gtk+-3.0: Fix gtk_recent_info_* bindings X-Git-Tag: 0.9.4~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1713f83a866bf6366d3e8d96f4737b6036f42f5a;p=thirdparty%2Fvala.git gtk+-2.0, gtk+-3.0: Fix gtk_recent_info_* bindings --- diff --git a/vapi/gtk+-2.0.vapi b/vapi/gtk+-2.0.vapi index e6f413e57..2afa474eb 100644 --- a/vapi/gtk+-2.0.vapi +++ b/vapi/gtk+-2.0.vapi @@ -3242,23 +3242,25 @@ namespace Gtk { public bool exists (); public ulong get_added (); public int get_age (); - public bool get_application_info (string app_name, string app_exec, uint count, ulong time_); - public unowned string get_applications (size_t length); + public bool get_application_info (string app_name, out unowned string app_exec, out uint count, out ulong time_); + [CCode (array_length_type = "gsize")] + public string[] get_applications (); public unowned string get_description (); public unowned string get_display_name (); - public unowned string get_groups (size_t length); - public unowned Gdk.Pixbuf get_icon (int size); + [CCode (array_length_type = "gsize")] + public string[] get_groups (); + public Gdk.Pixbuf? get_icon (int size); public unowned string get_mime_type (); public ulong get_modified (); public bool get_private_hint (); - public unowned string get_short_name (); + public string get_short_name (); public unowned string get_uri (); - public unowned string get_uri_display (); + public string? get_uri_display (); public ulong get_visited (); public bool has_application (string app_name); public bool has_group (string group_name); public bool is_local (); - public unowned string last_application (); + public string last_application (); public bool match (Gtk.RecentInfo info_b); } [CCode (cheader_filename = "gtk/gtk.h")] diff --git a/vapi/gtk+-3.0.vapi b/vapi/gtk+-3.0.vapi index 69cabda2e..fb3d8f897 100644 --- a/vapi/gtk+-3.0.vapi +++ b/vapi/gtk+-3.0.vapi @@ -2906,23 +2906,25 @@ namespace Gtk { public bool exists (); public ulong get_added (); public int get_age (); - public bool get_application_info (string app_name, string app_exec, uint count, ulong time_); - public unowned string get_applications (size_t length); + public bool get_application_info (string app_name, out unowned string app_exec, out uint count, out ulong time_); + [CCode (array_length_type = "gsize")] + public string[] get_applications (); public unowned string get_description (); public unowned string get_display_name (); - public unowned string get_groups (size_t length); - public unowned Gdk.Pixbuf get_icon (int size); + [CCode (array_length_type = "gsize")] + public string[] get_groups (); + public Gdk.Pixbuf? get_icon (int size); public unowned string get_mime_type (); public ulong get_modified (); public bool get_private_hint (); - public unowned string get_short_name (); + public string get_short_name (); public unowned string get_uri (); - public unowned string get_uri_display (); + public string? get_uri_display (); public ulong get_visited (); public bool has_application (string app_name); public bool has_group (string group_name); public bool is_local (); - public unowned string last_application (); + public string last_application (); public bool match (Gtk.RecentInfo info_b); } [CCode (cheader_filename = "gtk/gtk.h")] diff --git a/vapi/packages/gtk+-2.0/gtk+-2.0.metadata b/vapi/packages/gtk+-2.0/gtk+-2.0.metadata index 91677c96d..e3cecb481 100644 --- a/vapi/packages/gtk+-2.0/gtk+-2.0.metadata +++ b/vapi/packages/gtk+-2.0/gtk+-2.0.metadata @@ -434,6 +434,17 @@ gtk_recent_chooser_set_sort_func.sort_data hidden="1" gtk_recent_chooser_set_sort_func.data_destroy hidden="1" gtk_recent_chooser_get_items transfer_ownership="1" type_arguments="RecentInfo" gtk_recent_chooser_list_filters transfer_ownership="1" type_arguments="unowned RecentFilter" +gtk_recent_info_get_application_info.app_exec is_out="1" +gtk_recent_info_get_application_info.count is_out="1" +gtk_recent_info_get_application_info.time_ is_out="1" +gtk_recent_info_get_applications is_array="1" array_length_type="gsize" transfer_ownership="1" +gtk_recent_info_get_applications.length hidden="1" +gtk_recent_info_get_groups is_array="1" array_length_type="gsize" transfer_ownership="1" +gtk_recent_info_get_groups.length hidden="1" +gtk_recent_info_get_icon transfer_ownership="1" nullable="1" +gtk_recent_info_get_short_name transfer_ownership="1" +gtk_recent_info_get_uri_display transfer_ownership="1" nullable="1" +gtk_recent_info_last_application transfer_ownership="1" gtk_recent_manager_get_items transfer_ownership="1" type_arguments="RecentInfo" GtkRecentData is_value_type="1" has_copy_function="0" has_destroy_function="0" GtkRecentData.display_name weak="0" diff --git a/vapi/packages/gtk+-3.0/gtk+-3.0.metadata b/vapi/packages/gtk+-3.0/gtk+-3.0.metadata index febbddc32..bd67d2123 100644 --- a/vapi/packages/gtk+-3.0/gtk+-3.0.metadata +++ b/vapi/packages/gtk+-3.0/gtk+-3.0.metadata @@ -437,6 +437,17 @@ gtk_recent_chooser_set_sort_func.sort_data hidden="1" gtk_recent_chooser_set_sort_func.data_destroy hidden="1" gtk_recent_chooser_get_items transfer_ownership="1" type_arguments="RecentInfo" gtk_recent_chooser_list_filters transfer_ownership="1" type_arguments="unowned RecentFilter" +gtk_recent_info_get_application_info.app_exec is_out="1" +gtk_recent_info_get_application_info.count is_out="1" +gtk_recent_info_get_application_info.time_ is_out="1" +gtk_recent_info_get_applications is_array="1" array_length_type="gsize" transfer_ownership="1" +gtk_recent_info_get_applications.length hidden="1" +gtk_recent_info_get_groups is_array="1" array_length_type="gsize" transfer_ownership="1" +gtk_recent_info_get_groups.length hidden="1" +gtk_recent_info_get_icon transfer_ownership="1" nullable="1" +gtk_recent_info_get_short_name transfer_ownership="1" +gtk_recent_info_get_uri_display transfer_ownership="1" nullable="1" +gtk_recent_info_last_application transfer_ownership="1" gtk_recent_manager_get_items transfer_ownership="1" type_arguments="RecentInfo" GtkRecentData is_value_type="1" has_copy_function="0" has_destroy_function="0" GtkRecentData.display_name weak="0"