Re: re-filter GtkFileChooser widget after changing custom GtkFileFilter
- From: Olivier Sessink <lists olivier pk wau nl>
- To: Iago Rubio <iago iagorubio com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: re-filter GtkFileChooser widget after changing custom GtkFileFilter
- Date: Thu, 27 Oct 2005 15:45:23 +0200
Iago Rubio wrote:
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...
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);
thanks, it makes the dialog flash, but at least it triggers refiltering.
regards,
Olivier
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]