]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gtk+-2.0: Fix gtk_file_chooser_get_* bindings
authorEvan Nemerson <evan@coeus-group.com>
Wed, 18 Mar 2009 16:47:29 +0000 (09:47 -0700)
committerJürg Billeter <j@bitron.ch>
Sun, 29 Mar 2009 19:41:30 +0000 (21:41 +0200)
Fix memory leaks when using several Gtk.FileChooser methods.
Fixes bug 575824.

vapi/gtk+-2.0.vapi
vapi/packages/gtk+-2.0/gtk+-2.0.metadata

index 198e2d42e98986fed2d654dbfda3d16cf1b88b3d..e55d86282d6174c9f60e964580772d1c964aed05 100644 (file)
@@ -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 ();
index 3b239599d1f719f2c2dfd7d5412966f4e398f1ca..10f68130b5c63217d03d0c173147951ec7f6b118 100644 (file)
@@ -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"