Merge branch 'remove_ref_sink_on_gtk_filter' into 'main'

gtkfilechooserwidget: Replace g_object_ref_sink () with g_object_ref () on file filter

See merge request GNOME/gtk!6484
This commit is contained in:
Matthias Clasen 2023-10-15 11:28:29 +00:00
commit f04ba3bc60

View File

@ -4772,7 +4772,7 @@ gtk_file_chooser_widget_add_filter (GtkFileChooser *chooser,
return;
}
g_object_ref_sink (filter);
g_object_ref (filter);
g_list_store_append (impl->filters, filter);
g_object_unref (filter);
@ -6000,7 +6000,7 @@ set_current_filter (GtkFileChooserWidget *impl,
g_object_unref (impl->current_filter);
impl->current_filter = filter;
if (impl->current_filter)
g_object_ref_sink (impl->current_filter);
g_object_ref (impl->current_filter);
gtk_drop_down_set_selected (GTK_DROP_DOWN (impl->filter_combo), filter_index);