From: Evan Nemerson Date: Wed, 18 Mar 2009 16:47:29 +0000 (-0700) Subject: gtk+-2.0: Fix gtk_file_chooser_get_* bindings X-Git-Tag: 0.6.0~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c01e9eabf2d6a3a54cb0382dc969e395babe2b3;p=thirdparty%2Fvala.git gtk+-2.0: Fix gtk_file_chooser_get_* bindings Fix memory leaks when using several Gtk.FileChooser methods. Fixes bug 575824. --- diff --git a/vapi/gtk+-2.0.vapi b/vapi/gtk+-2.0.vapi index 198e2d42e..e55d86282 100644 --- a/vapi/gtk+-2.0.vapi +++ b/vapi/gtk+-2.0.vapi @@ -5309,21 +5309,21 @@ namespace Gtk { public bool add_shortcut_folder_uri (string uri) throws GLib.Error; public static GLib.Quark error_quark (); public Gtk.FileChooserAction get_action (); - public unowned string get_current_folder (); - public unowned string get_current_folder_uri (); + public string get_current_folder (); + public string get_current_folder_uri (); public bool get_do_overwrite_confirmation (); public unowned Gtk.Widget get_extra_widget (); - public unowned string get_filename (); + public string get_filename (); public unowned GLib.SList get_filenames (); public unowned Gtk.FileFilter get_filter (); public bool get_local_only (); - public unowned string get_preview_filename (); - public unowned string get_preview_uri (); + public string get_preview_filename (); + public string get_preview_uri (); public unowned Gtk.Widget get_preview_widget (); public bool get_preview_widget_active (); public bool get_select_multiple (); public bool get_show_hidden (); - public unowned string get_uri (); + public string get_uri (); public unowned GLib.SList get_uris (); public bool get_use_preview_label (); public unowned GLib.SList list_filters (); diff --git a/vapi/packages/gtk+-2.0/gtk+-2.0.metadata b/vapi/packages/gtk+-2.0/gtk+-2.0.metadata index 3b239599d..10f68130b 100644 --- a/vapi/packages/gtk+-2.0/gtk+-2.0.metadata +++ b/vapi/packages/gtk+-2.0/gtk+-2.0.metadata @@ -112,6 +112,12 @@ gtk_entry_completion.func transfer_ownership="1" gtk_entry_completion.func_data hidden="1" gtk_entry_completion.func_notify hidden="1" gtk_false hidden="1" +gtk_file_chooser_get_current_folder transfer_ownership="1" +gtk_file_chooser_get_current_folder_uri transfer_ownership="1" +gtk_file_chooser_get_filename transfer_ownership="1" +gtk_file_chooser_get_preview_filename transfer_ownership="1" +gtk_file_chooser_get_preview_uri transfer_ownership="1" +gtk_file_chooser_get_uri transfer_ownership="1" gtk_file_chooser_dialog_new.title nullable="1" gtk_file_chooser_dialog_new.parent nullable="1" gtk_file_chooser_dialog_new_with_backend.title nullable="1"