Re: gtkfilechooser buttons



Gyözö Both ha scritto lo scorso 17/06/2005 09:15:
hi,

i've created a filechooserdialog with glade, the default mode is open.

now i want to save files, too, so i create the window and set the mode
to save. everything works fine, but the button that confirms things
still reads 'open' (with the default open pixmap, a folder image).
shouldn't that be a 'save' button, with the floppy image? am i doing
something wrong?

i also tried to set the default mode (in glade) to 'save', but the
button's still 'open', even in 'save' mode.

note that the behaviour is fine, saving and loading work as expected.
only the apperance is weird.

my gtk version is 2.4.8.

You can consider using a dinamically generated filechooser, instead of a statically generated one (i.e. that created by Glade) by means of gtk_file_chooser_dialog_new; in this way, you can select a GTK_FILE_CHOOSER_ACTION_OPEN behaviour or a GTK_FILE_CHOOSER_ACTION_SAVE one, depending on your current operation.



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