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 145470 - Refresh on ::map()
Refresh on ::map()
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: GtkFileChooser
2.4.x
Other All
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2004-07-05 18:34 UTC by Federico Mena Quintero
Modified: 2011-02-04 16:17 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Federico Mena Quintero 2004-07-05 18:34:02 UTC
Some applications reuse file choosers by mapping and unmapping them between
invocations.  For example, it looks like the GIMP creates a file chooser for
Open, another one for Save, and never destroys them, just maps/unmaps them.  So,
if you do this:

1. File/Open
2. File/Save As, and create a bookmark
3. File/Open

In (3), the bookmarks list is not updated with the new bookmark from (2).

We should re-read the bookmarks and the contents of the current folder when the
file chooser is mapped.
Comment 1 Federico Mena Quintero 2004-11-20 06:10:51 UTC
One side-effect of remapping is that it makes it obvious that the C-l shortcut
doesn't work if the focus is outside the GtkFileChooserDefault widget, namely if
it is in the dialog's buttons.  This happens if the dialog is hidden and then
remapped:  the user clicks on a dialog button to terminate the dialog, which
gives focus to the button; the next time the dialog is mapped, the focus remains
there and C-l doesn't work.

We should also call initial_focus() or whatever that is called when the file
chooser is remapped.
Comment 2 Federico Mena Quintero 2004-12-15 01:37:49 UTC
Fixed in both HEAD and gtk-2-4.
Comment 3 Morten Welinder 2005-04-28 19:28:43 UTC
This is broken -- it triggers on the first load, see bug 302322.