[vala] gtk+-2.0, gtk+-3.0: Fix gtk_recent_info_* bindings



commit 1713f83a866bf6366d3e8d96f4737b6036f42f5a
Author: Michal Hruby <michal mhr gmail com>
Date:   Tue Jul 20 21:23:56 2010 +0200

    gtk+-2.0, gtk+-3.0: Fix gtk_recent_info_* bindings

 vapi/gtk+-2.0.vapi                       |   16 +++++++++-------
 vapi/gtk+-3.0.vapi                       |   16 +++++++++-------
 vapi/packages/gtk+-2.0/gtk+-2.0.metadata |   11 +++++++++++
 vapi/packages/gtk+-3.0/gtk+-3.0.metadata |   11 +++++++++++
 4 files changed, 40 insertions(+), 14 deletions(-)
---
diff --git a/vapi/gtk+-2.0.vapi b/vapi/gtk+-2.0.vapi
index e6f413e..2afa474 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 69cabda..fb3d8f8 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 91677c9..e3cecb4 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 febbddc..bd67d21 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"



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