Re: filechooser dialog question...

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

 



Le lundi 16 mai 2005 Ã 17:21 -0400, Micah Carrick a Ãcrit :
> I have a file chooser dialog which i use to open and save files.  
> However, I can't figure out how to make the "Open" button change to 
> "Save" when I'm using it with GTK_FILE_CHOOSER_ACTION_SAVE.  Any help?

This is a sample code I use in my applications:

dialog = (GtkFileChooser*) gtk_file_chooser_dialog_new(
(Save)? _("Save as"): _("Open"),
App->GetWindow(),
(Save)? GTK_FILE_CHOOSER_ACTION_SAVE: GTK_FILE_CHOOSER_ACTION_OPEN,
(Save)? GTK_STOCK_SAVE: GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT,
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
NULL);


_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux