re-filter GtkFileChooser widget after changing custom GtkFileFilter



Hi all,

I have a custom GtkFileFilter, some check buttons in the
GtkFileChooserDialog affect the filtering.

However, after one of the checkboxes have been changed, the
GtkFileChooser widget has to refilter (my custom filter func will return
a different value). How do I do that??

I've tried to simply set the filter function in the callback:

GtkFileFilter *filter =
gtk_file_chooser_get_filter(GTK_FILE_CHOOSER(dialog));
gtk_file_chooser_set_filter(GTK_FILE_CHOOSER(dialog), filter);

but that doesn't trigger the refiltering...

Anybody an idea?

thanks,
        Olivier Sessink





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