Hi all, I think I've found a bug in Thunar. This is my first time submitting a bug. I do so since I do not believe this is the way Thunar is meant to behave. I hope I am doing the correct thing. Please note that my native language is not English. My Thunar v1.0.0 stretches its window horizontally to fit the directory name in its title. This gives problems if this name is very long, since then the window will stretch outside the boundaries of the screen. This happens both in xfce 4.6 and openbox. To reproduce: Just create a directory whose name is very long, opening it in Thunar will resize its window. Cheers, Roald
There's nothing Thunar can do about it other than making sure to shorten/ellipsize the title before setting it. However, I wonder if that isn't something the window manager could do to make sure window titles don't cause windows to change their size. Olivier?
Many thanks for your quick reply Jannis. I just noticed that it is not the titlebar but Thunars pathbar that is the problem. Without pathbar the title is indeed shortened and the window does not resize. The pathbar however stretches horizontally in order to display the directory name completely. Is there a way to stop Thunar resizing its window when this happens? PS. When deleting a directory/file with a very long filename the confirmation dialog that appears can also be made to be stretched beyond the boundaries of the screen in order to display its name fully.
(In reply to comment #1) > There's nothing Thunar can do about it other than making sure to > shorten/ellipsize the title before setting it. However, I wonder if that isn't > something the window manager could do to make sure window titles don't cause > windows to change their size. Olivier? This is irrelevant, the title width has no control over the window size (ie no window will be enlarged to for the title to fit, that'd be insane). It is the application itself that sends a configureRequest() to change its size. The window manager does its best to ensure that the window remains visible, but if the application sets its size larger than the screen, it'll get the size it asked (doing otherwise would break numerous well behaving applications).
Sorry if this is the wrong place to enquire but is this bug assigned, or is it actually still new? I'm somewhat curious about progress on this bug, even attempting some wholly unqualified hacking of my own, to no avail. Am I correct in assuming GtkButton labels don't support PANGO_ELLIPSIZE_* and the path buttons would thus need to be turned into containers, containing separate GtkLabel widgets with the ellipsize hint? Cheers. Ick.
Created attachment 3769 Patch for thunar-location-button.c Set ellipsize option for label and change packing of icon to accomodate possible resize of button.
Created attachment 3770 Patch for thunar-location-buttons.c Hi everyone, I wrote a patch for this problem, the location buttons are now resized if they are too wide to fit without resizing the window.
*** Bug 8604 has been marked as a duplicate of this bug. ***
*** Bug 10772 has been marked as a duplicate of this bug. ***
Sorry for the late replay and thanks for the patch ! Actually I just wanted to test and possibly apply the patch .. however it looks like thunar-master already handles the use-case correct without the patch. Probably because the thunar-location-buttons got redesigned / ported to gtk3. I can however reproduce the problem with thunar 1.6.13, and I can confirm that the patch works fine for that version