]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gtk+-2.0, gtk+-3.0: Fix gtk_recent_info_* bindings
authorMichal Hruby <michal.mhr@gmail.com>
Tue, 20 Jul 2010 19:23:56 +0000 (21:23 +0200)
committerJürg Billeter <j@bitron.ch>
Tue, 20 Jul 2010 19:24:41 +0000 (21:24 +0200)
vapi/gtk+-2.0.vapi
vapi/gtk+-3.0.vapi
vapi/packages/gtk+-2.0/gtk+-2.0.metadata
vapi/packages/gtk+-3.0/gtk+-3.0.metadata

index e6f413e57593acb0011b1502ceed33ddfaca2b3b..2afa474eb4f16a459e2665a4e3514ac6253eca02 100644 (file)
@@ -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")]
index 69cabda2ef6ee216d668f607690ba4822d944fa2..fb3d8f897bfc0f76031dca1598f9b6eda741f9ce 100644 (file)
@@ -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")]
index 91677c96d0ca110521a3a10198c060a888dcdeff..e3cecb481ffee1515b723b2b8c18e65707aca1b7 100644 (file)
@@ -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"
index febbddc32a36c86a3416e52eaff3372d15d97d25..bd67d212353e9bbb762615d4492efe4a9a1e2c28 100644 (file)
@@ -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"