GNOME Bugzilla – Bug 164900
gtkfilechooserbutton doesn't allow save-action
Last modified: 2017-08-27 09:44:42 UTC
Hi, It seems that in G2.10, GnomeFileEntry is deprecated in favour of GtkFileChooserButton, which is a good thing. However, I can only select folders and open files with it, I can't create new folders or save to new files (see http://cvs.gnome.org/viewcvs/gtk%2B/gtk/gtkfilechooserbutton.c?rev=1.26&view=markup, gnome_file_chooser_button_new(), the g_return_val_if_fail()). Since the entry is deprecated, this seems like a regression to me. Is there some other object I should use or is this unfinished code?
The code to do this was in the GtkFileChooserButton for a while during 2.5.x, but the interaction designers found that it promotes bad ui, and thus it was removed before 2.6.
Hi Matthias, thanks for the response. I assume discussing this here is not really a good thing, so where would I ask questions on how to do this instead? gtk-devel-list? The usability people? Somewhere else? I need such a widget (I think), or something that resembles it. Thanks.
I think it might make sense to discuss options for save mode in the migration guide. I think Seth and jrb had some ideas how one would handle save mode.
*** Bug 662837 has been marked as a duplicate of this bug. ***
In response to that later request for this to be added, I'll leave this closed unless anyone wants to reconsider it, but this was my take on it before finding this (again), and it seems to agree that it wasn't considered a useful design. I guess the FCB was intended for a file-opening workflow, where maybe you select the file, then select some options (e.g. which things to load), then click OK. As far as I've seen, saving tends to work in the opposite order: You select the options for what you'e saving, then click OK, then get a FileChooser. So it might be that these actions were considered but not deemed useful. Perhaps you could give an example of a useful workflow/design that would use the FileChooserButton in save (or even create folder) mode, and explain why it's preferable to the other, currently available ways of doing this.