! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Thunar window resizes to display a too long directory name completely.
Status:
RESOLVED: FIXED

Comments

Description roaldkoudenburg 2009-03-17 23:55:28 CET
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
Comment 1 Jannis Pohlmann editbugs 2009-03-18 00:05:49 CET
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?
Comment 2 roaldkoudenburg 2009-03-18 00:31:21 CET
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.
Comment 3 Olivier Fourdan editbugs 2009-03-18 09:03:37 CET
(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).
Comment 4 etnlicarus 2010-04-10 16:04:29 CEST
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.
Comment 5 henry 2011-06-29 23:10:45 CEST
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.
Comment 6 henry 2011-06-29 23:13:58 CEST
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.
Comment 7 Harald Judt editbugs 2015-04-17 18:30:49 CEST
*** Bug 8604 has been marked as a duplicate of this bug. ***
Comment 8 Harald Judt editbugs 2015-04-17 20:08:13 CEST
*** Bug 10772 has been marked as a duplicate of this bug. ***
Comment 9 alexxcons editbugs 2018-01-30 23:07:28 CET
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

Bug #5122

Reported by:
roaldkoudenburg
Reported on: 2009-03-17
Last modified on: 2018-01-31
Duplicates (2):
  • 8604 Window auto-expand when entering a dictionary with a very long name
  • 10772 automatic rezising window with breadcrumb navigation

People

Assignee:
Jannis Pohlmann
CC List:
7 users

Version

Attachments

Additional information