forked from AuroraMiddleware/gtk
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.
This commit is contained in:
parent
8687fbc15e
commit
fbb9447785
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user