Constructor

GtkRecentFilternew

since: 2.10

Declaration [src]

GtkRecentFilter*
gtk_recent_filter_new (
  void
)

Description [src]

Creates a new GtkRecentFilter with no rules added to it. Such filter does not accept any recently used resources, so is not particularly useful until you add rules with gtk_recent_filter_add_pattern(), gtk_recent_filter_add_mime_type(), gtk_recent_filter_add_application(), gtk_recent_filter_add_age(). To create a filter that accepts any recently used resource, use:

GtkRecentFilter *filter = gtk_recent_filter_new ();
gtk_recent_filter_add_pattern (filter, "*");

Available since: 2.10

Return value

Type: GtkRecentFilter

A new GtkRecentFilter.

The data is owned by the called function.