GNOME Bugzilla – Bug 145470
Refresh on ::map()
Last modified: 2011-02-04 16:17:18 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.
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.
Fixed in both HEAD and gtk-2-4.
This is broken -- it triggers on the first load, see bug 302322.