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 666034 - gtkfilechooserdefault fails to add saved files to recent manager
gtkfilechooserdefault fails to add saved files to recent manager
Status: RESOLVED DUPLICATE of bug 662814
Product: gtk+
Classification: Platform
Component: Widget: GtkFileChooser
2.24.x
Other All
: Normal minor
: ---
Assigned To: gtk-bugs
Federico Mena Quintero
Depends on:
Blocks:
 
 
Reported: 2011-12-12 22:37 UTC by LRN
Modified: 2011-12-13 17:09 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description LRN 2011-12-12 22:37:10 UTC
_g_local_file_info_get() (which is what recent manager eventually calls for local files) always fails for non-existent files, and causes gtk_recent_manager_add_item_query_info() to fail with g_warning. This is not fatal, but quite annoying, considering the fact that gtkfilechooserdefault is perfectly aware (see name_entry_get_parent_info_cb()) of the fact that the file does NOT exist, and still tries to push it into the recent manager. Also, it is unclear why non-existent files can't be added to recent manager (adding a directory where file was saved could be ok).
Comment 1 LRN 2011-12-12 22:58:53 UTC
/me blames http://git.gnome.org/browse/gtk+/commit/gtk/gtkfilechooserdefault.c?h=gtk-2-24&id=119df7415e532830e8c1f744edb0014b785e9bc4 (before that filechooserdefault did not call add_selection_to_recent_list() as often)
Comment 2 Federico Mena Quintero 2011-12-13 17:09:44 UTC
I fixed this in the master branch recently, and now it's in the gtk-2-24 branch as well.  So, I'll mark this bug as a duplicate.

The file chooser should now properly save things to the recently-used list from the Save dialog.

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