[maemo-developers] how to add filter to HildonFileChooserDialog
From: Markku Vire markku.vire at movial.fiDate: Thu Mar 6 12:08:19 EET 2008
- Previous message: how to add filter to HildonFileChooserDialog
- Next message: Tr: RE : Re: RE : Re: Fullscreen and Flash
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 <markku.vire at movial.fi> 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 at maemo.org >>> https://lists.maemo.org/mailman/listinfo/maemo-developers >> > >
- Previous message: how to add filter to HildonFileChooserDialog
- Next message: Tr: RE : Re: RE : Re: Fullscreen and Flash
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]