]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gtk+-3.0: fix flowbox selection foreach API
authorRyan Lortie <desrt@desrt.ca>
Thu, 17 Apr 2014 23:32:53 +0000 (19:32 -0400)
committerRyan Lortie <desrt@desrt.ca>
Thu, 17 Apr 2014 23:35:50 +0000 (19:35 -0400)
The callback doesn't have a destroy notify, so don't mark it 'owned'.
Additionally, it's not OK to pass a NULL callback to a foreach function.

https://bugzilla.gnome.org/show_bug.cgi?id=728474

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

index 35645a87ad721e9c8c814d31721f3af05a7b3252..33ec6a22c46553e6dd873a92ce11508a83f25559 100644 (file)
@@ -2130,7 +2130,7 @@ namespace Gtk {
                public void invalidate_filter ();
                public void invalidate_sort ();
                public void select_child (Gtk.FlowBoxChild child);
-               public void selected_foreach (owned Gtk.FlowBoxForeachFunc? func);
+               public void selected_foreach (Gtk.FlowBoxForeachFunc func);
                public void set_activate_on_single_click (bool single);
                public void set_column_spacing (uint spacing);
                public void set_filter_func (owned Gtk.FlowBoxFilterFunc? filter_func);
index b54b6ee7c62f11ee49553257c5b01b7688d673a0..f99a8cfc6d30b188e11ecf1a5cdd9d16ab63410a 100644 (file)
@@ -318,7 +318,6 @@ gtk_file_chooser_list_shortcut_folder_uris nullable="1" transfer_ownership="1" t
 gtk_file_chooser_list_shortcut_folders nullable="1" transfer_ownership="1" type_arguments="string"
 GtkFixed.children type_arguments="Widget"
 gtk_flow_box_get_selected_children transfer_ownership="1" type_arguments="unowned FlowBoxChild"
-gtk_flow_box_selected_foreach.func transfer_ownership="1" nullable="1"
 gtk_flow_box_selected_foreach.data hidden="1"
 gtk_flow_box_set_filter_func.filter_func transfer_ownership="1" nullable="1"
 gtk_flow_box_set_filter_func.destroy hidden="1"