On Mon, 2005-10-24 at 15:20 +0200, Olivier Sessink wrote: > 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?
Not quite elegant and untested but, have you tried to re-set the directory before to set the new filter ? gtk_file_chooser_set_filter (chooser, filter); gtk_file_chooser_set_current_folder (chooser,current_folder); -- Iago Rubio _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list