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 453383 - Selecting a bookmark can clear current name
Selecting a bookmark can clear current name
Status: RESOLVED DUPLICATE of bug 419737
Product: gtk+
Classification: Platform
Component: Widget: GtkFileChooser
2.11.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
Federico Mena Quintero
Depends on:
Blocks:
 
 
Reported: 2007-07-03 13:33 UTC by René Stadler
Modified: 2007-11-13 00:51 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description René Stadler 2007-07-03 13:33:03 UTC
How to reproduce:

Take a FileChooser with ACTION_SAVE.  Manually enter something as current name (into the top entry labeled "Name:"), or leave the application-supplied name if there is any.  Then select any folder that contains at least one regular file and no other subfolders.  Open the "Browse for other folders" expander if you haven't done so already.  Double-click any folder bookmark or the Home or Desktop place item.

Note how for a short moment, the first filename of the previously selected folder appears in the top entry (the current name) and how the entry is cleared afterwards.

This is really annoying when a default current name is provided by the application, like when downloading files with Epiphany.

I skimmed a bit through the code and found this in gtkfilechooserdefault.c, in the function shortcuts_activate_get_info_cb:

  if (!error && gtk_file_info_get_is_folder (info))
    {
      change_folder_and_display_error (data->impl, data->path, FALSE);
      focus_browse_tree_view_if_possible (data->impl);
    }

Removing the call to focus_browse_tree_view_if_possible seems to fix it.
Comment 1 Dimitur Kirov 2007-10-13 10:50:14 UTC
Sometimes I experience the same problem. It depends on the speed of double clicking bookmarked folder.
Comment 2 Federico Mena Quintero 2007-10-30 22:56:18 UTC
This is also https://bugzilla.novell.com/show_bug.cgi?id=337448
Comment 3 Federico Mena Quintero 2007-11-13 00:51:21 UTC

*** This bug has been marked as a duplicate of 419737 ***