Hi,

HildonFileChooserDialog implements GtkFileChooser interface, so you can
just do a cast. Fo example:

gtk_file_chooser_set_filter(GTK_FILE_CHOOSER(your_hildon_file_selector),
filter_to_be_set);

-Markku-

Yuan Jiang wrote:
> Can you give me an example?
> 
> void gtk_file_chooser_set_filter(GtkFileChooser
> <file:///usr/share/gtk-doc/html/gtk/GtkFileChooser.html> *chooser,
> GtkFileFilter 
> <file:///usr/share/gtk-doc/html/gtk/gtk-gtkfilefilter.html#GtkFileFilter>
> *filter);
> 
> The first param, what should I provide.
> I try to use HildonFileChooserDialog
> But it doesn't seem to work.
> 
> Thanks.
> 
> 
> 
> On Thu, Mar 6, 2008 at 4:42 PM, Markku Vire <[EMAIL PROTECTED]> wrote:
> 
>> Hi,
>>
>> Use normal
>>
>>  gtk_file_chooser_set_filter
>>
>> In order to setup the filter matching image files, you can use
>>
>>  gtk_file_filter_add_pixbuf_formats
>>
>> Hope this helps,
>>
>> -Markku-
>>
>>
>> Yuan Jiang wrote:
>>> anyone can tell me how to add file type filter to
>> HildonFileChooserDialog.
>>> I just want to show image files in the file chooser dialog.
>>>
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> maemo-developers mailing list
>>> maemo-developers@maemo.org
>>> https://lists.maemo.org/mailman/listinfo/maemo-developers
>>
> 
> 

_______________________________________________
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers

Reply via email to