Re: File chooser API for formats in Save mode



Hi,


> chooser = gtk_file_chooser_dialog_new ("Save As", 
> 				       parent_window,
> 				       GTK_FILE_CHOOSER_ACTION_SAVE,
> 				       GTK_STOCK_SAVE, GTK_RESPONSE_ACCEPT,
> 				       GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL);
> 
> gtk_file_chooser_add_save_format (chooser, 0, "Excel 2000", ...);
> gtk_file_chooser_add_save_format (chooser, 1, "Gnumeric", ...);
> gtk_file_chooser_add_save_format (chooser, 2, "Lotus 1-2-3", ...);
> 
> gtk_file_chooser_set_save_format (chooser, 1); /* Make Gnumeric the default */

I think that the combobox is lacking some API that would make this
possible.  In fact, I needed to do something similar recently with some
stuff I put in gnome-media.  So maybe it would be better to think in
terms of something that can be added to gtk-combo and would be
generically available from GTK, than a very custom solution for the file
chooser combo box ?

Feel free to put me in my place if I missed the point of the mail :)

Thomas

Dave/Dina : future TV today ! - http://www.davedina.org/
<-*- thomas (dot) apestaart (dot) org -*->
I feel like I'm at something you always say you need more time
Well I'll stay right here and I'll wait for good
until I find a love worth mine
<-*- thomas (at) apestaart (dot) org -*->
URGent, best radio on the net - 24/7 ! - http://urgent.fm/





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]