Re: Filtering Recent Documents
- From: Emmanuele Bassi <ebassi gmail com>
- To: gtk-list gnome org
- Subject: Re: Filtering Recent Documents
- Date: Thu, 04 Oct 2007 23:20:54 +0100
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]