Re: gtk_file_chooser_set_filter does not work as advertised
- From: "Richard Boaz" <riboaz xs4all nl>
- To: "David Hoover" <karma deadmoose com>
- Cc: gtk-list gnome org
- Subject: Re: gtk_file_chooser_set_filter does not work as advertised
- Date: Fri, 6 Jan 2006 13:28:02 +0100 (CET)
Hi,
thanks for the response, this prompted more investigative ideas and i
discovered my problem.
the problem was that i had also used the call
gtk_file_chooser_set_filename(), though only specifiying a directory. it
seems that when calling this, calls to gtk_file_chooser_set_filter() are
ignored.
because when i changed gtk_file_chooser_set_filename() to
gtk_file_chooser_set_current_folder() (more appropriate for my purposes),
everything works fine.
thanks for the followup, that's exactly what i needed to get me to the
solution.
cheers,
richard
>> the documentation for gtk_file_chooser_set_filter() indicates that this
>> can be used without having to call gtk_file_choo, ser_add_filter() to
>> restrict the files on display. this simply does not work.
> It appears to work for me. I've attached a sample program that does what
> you've described. When I run it, I don't see the drop down to select a
> filter, but it only contains files matching the pattern "*.1"
>
> I'd be forced to guess, then, that there's either a bug in the
> particular version of gtk you're running against, or there's a glitch in
> your code. You describe giving a file entry to allow the user to specify
> the pattern; assuming this simple test case works for you, can you post
> your specific code, rather than a vague description that seems to match
> my little test case here?
>
> Of course, if the simple test case fails for you, it clearly points the
> finger at your specific version of gtk. Mine, which it works
> successfully with, is 2.6.7, from the fc4 2.6.7-4 rpm.
>
> Hope this helps some.
>
> --
> David Hoover <karma deadmoose com>
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]