[Glade-users] how to fill a ComboBoxEntry with the names of files
of a directory ?
David Sveningsson
david.sveningsson at telia.com
Thu Feb 2 14:50:12 EST 2006
Hi, if I understand correctly what you want to do, there is already a
dialog that does what you want. Check out
http://developer.gnome.org/doc/API/2.0/gtk/GtkFileChooserDialog.html
*//David Sveningsson [eXt]*
._____________________________________________________________________.
Cell phone: +46735151559 | ICQ#: 155094664 | MSN: eXt_85 at hotmail.com
IRC: #[FoRest],#Linux.SE at EFnet, #nitroxy at QNet
[In time of development time stands still]
[Ore wa ... kimi o ... mamoru] -Rurouni Kenshin
Micro$oft stjäl kod! Stöd Open-Source, kör Linux
._____________________________________________________________________.
santiago.pita at apc.univ-paris7.fr wrote:
>
> Hi, I'm a beginner-user of glade. I have created a GUI with a Browser
> and an empty ComboBoxEntry. I would like, when the user selects a
> directory with the Browser, the ComboBoxEntry to be filled with the
> names of the files which are this directory.
>
> For that, I have choosen the Signal="clicked" for the button OK of my
> Browser. As a consequence, I have the following lines in the
> callback.c file:
>
> void
> on_filechooserbutton_clicked(GtkButton *button, gpointer user_data)
> {
>
> }
>
> I suppose that I have to fill this, beginning with something like:
> GtkFileChooser *chooser;
> chooser = lookup_widget(button,"runlist_filechooserdialog");
>
> But I don't know how to continue in order:
> 1) get the list of files being in the selected directory
> 2) put this in my ComboBoxEntry
>
> I would appreciate some help!
>
> Cheers
> Santiago
> _______________________________________________
> Glade-users maillist - Glade-users at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/glade-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/glade-users/attachments/20060202/ed637a70/attachment.html
More information about the Glade-users
mailing list