Re: filechooser dialog question...



Le lundi 16 mai 2005 �7:21 -0400, Micah Carrick a �it :
> 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);





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