After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 157384 - SAVE / CREATE_FOLDER modes for GtkFileChooserButton
SAVE / CREATE_FOLDER modes for GtkFileChooserButton
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: GtkFileChooser
2.5.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
Federico Mena Quintero
Depends on:
Blocks:
 
 
Reported: 2004-11-04 19:33 UTC by Owen Taylor
Modified: 2013-07-10 18:52 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
a patch (3.06 KB, patch)
2004-11-05 16:45 UTC, Matthias Clasen
none Details | Review

Description Owen Taylor 2004-11-04 19:33:17 UTC
(Based on a discussion with Seth, Jonathan)

I think we shouldn't allow these modes in 2.6. For Save:

 * Without paths, you just have 'a name' with no indication of
   where the file is going to end up.

 * With paths, you have paths (upsetting certain people), and
   you get a unhelpfully trunctated path in many cases.

 * There's a significantly better way to set up selecting 
   a filename to save in:

          [  Entry ]
       in [ Folder ]

   or possibly:

      [    Entry     ]
      in ‘Folder’ [  ]

   This combination can't really be a single widget, because 
   it wouldn't give enough packing flexibility. SO, I think we
   should just encourage people to use an entry plus ChooserButton
   in select mode.

For Create Folder, it's an extremely rare operation, and 
most of the same considerations apply as above

We could add something here later, if we figure out a good way
to go, but I think maximum future flexiblity is if we make
these g_warning() and fall back to Open mode for 2.6.
Comment 1 Matthias Clasen 2004-11-05 16:45:37 UTC
Created attachment 33475 [details] [review]
a patch 

Here is a patch to cripple the button.
Comment 2 Matthias Clasen 2004-11-07 04:57:24 UTC
Committed.
Comment 3 jmv_deb 2013-07-10 18:52:54 UTC
So now, for people who upgraded their gtk2, applications that are using the GTK_FILE_CHOOSER_ACTION_SAVE get a nice warning on stderr, and are only allowed to select an existing file for overwrite.

I really fail to see how this is an improvement.

Any idea how to fix all the applications that got broken?

I suppose a plain text input is better for now.

I cannot afford to spend hours/days to migrate (rewrite) my .glade to .ui right now, as gtk-builder-convert fails for half the files.