Commit fbb94477 authored by Tristan Van Berkom's avatar Tristan Van Berkom

gtk_recent_chooser_set_filter: Allow NULL value to unset the filter.

While GtkRecentChooser implementations accept for the "filter" property
to unset the current filter, the API fires an unneeded assertion.

This patch removes the assertion.
parent 8687fbc1
......@@ -962,7 +962,7 @@ gtk_recent_chooser_list_filters (GtkRecentChooser *chooser)
* gtk_recent_chooser_set_filter:
* @chooser: a #GtkRecentChooser
* @filter: a #GtkRecentFilter
* @filter: (allow-none): a #GtkRecentFilter
* Sets @filter as the current #GtkRecentFilter object used by @chooser
* to affect the displayed recently used resources.
......@@ -974,7 +974,7 @@ gtk_recent_chooser_set_filter (GtkRecentChooser *chooser,
GtkRecentFilter *filter)
g_return_if_fail (GTK_IS_RECENT_CHOOSER (chooser));
g_return_if_fail (GTK_IS_RECENT_FILTER (filter));
g_return_if_fail (filter == NULL || GTK_IS_RECENT_FILTER (filter));
g_object_set (G_OBJECT (chooser), "filter", filter, NULL);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment