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 300334 - Dialog is resized when preview disappears
Dialog is resized when preview disappears
Status: RESOLVED WONTFIX
Product: gtk+
Classification: Platform
Component: Widget: GtkFileChooser
unspecified
Other Linux
: Normal normal
: Need diagnosis
Assigned To: gtk-bugs
gtk-bugs
filechooser-retest-and-triage
Depends on:
Blocks:
 
 
Reported: 2005-04-12 14:13 UTC by Vincent Noel
Modified: 2014-12-23 11:57 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch (682 bytes, patch)
2006-11-10 14:36 UTC, Carlos Garnacho
none Details | Review

Description Vincent Noel 2005-04-12 14:13:41 UTC
Using an application that lets you see image previews in the file chooser,
navigate to a deep folder.

Click on an image file. The preview appears on the right side, and the file
chooser is resized to accomodate it.

Now click on a parent folder in the path bar. The preview disappears, and the
dialog gets resized. The path bar is also resized, items that were visible
before are suddenly invisible, and (the biggest problem) the item that was under
your mouse moves to an unpredictable place (it may even become invisible
itself). It's surprising, annoying and means you cannot go back to the folder
you were visiting using the path bar.

This is especially annoying when you are in a deep folder : with the preview
turned on, you can see the whole path in the path bar, but as soon as you click
on another folder only one or two folders can be seen. Since there is no easy,
visual way to link the previous path bar to the new one, it becomes quite useless.
Comment 1 Federico Mena Quintero 2005-06-15 01:38:43 UTC
See also bug #167189
Comment 2 Carlos Garnacho 2006-11-10 14:36:20 UTC
Created attachment 76328 [details] [review]
patch

Hi!,

This small patch fixes this issue by always setting first_scrolled_button. Without this patch, if first_scrolled_button is not set, the pathbar always tries to show the end of the directories hierarchy shown, which unfortunately has the drawback of displacing buttons when the dialog shrinks. With the patch, the buttons don't move when shrinking the dialog, they just hide if they don't fit.
Comment 3 Milan Bouchet-Valat 2008-11-28 15:42:36 UTC
Any news on that? It can still be applied, the code is the same. Applying it is not much. Else, just close that.
Comment 4 Timothy Arceri 2013-05-31 12:30:28 UTC
The dialog no longer changes size, instead the file selection widget shinks to make room. I think both this bug and bug #167189 are fixed.
Comment 5 Matthias Clasen 2014-12-23 11:57:35 UTC
I don't think anything is going to change with the current preview implmentation.