Re: Filtering Recent Documents

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2007-10-04 at 19:13 -0300, Jonh Wendell wrote:
> Hi, folks.
> 
> I'm trying to filter Recent Documents, but had no success. This is a
> piece of the code:
> 
>   action = gtk_recent_action_new ("recent_connections",
> 				  _("_Recent connections"),
> 				  NULL, NULL);
>   filter = gtk_recent_filter_new ();
>   gtk_recent_filter_add_group (filter, "vinagre");
>   gtk_recent_chooser_add_filter (GTK_RECENT_CHOOSER (action),
> 				 filter);
> 
> What's wrong in that code? I'd like to list only documents tagged as
> 'vinagre'.

you did not call gtk_recent_chooser_set_filter() after
gtk_recent_chooser_add_filter(); add_filter() will add a filter to the
list of available filters, but it's set_filter() that will apply it to
the list displayed by a GtkRecentChooser.

ciao,
 Emmanuele.

-- 
Emmanuele Bassi,
W: http://www.emmanuelebassi.net
B: http://log.emmanuelebassi.net

_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux