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 169390 - GtkStatusbar label ellipsizing broken
GtkStatusbar label ellipsizing broken
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: .General
2.7.x
Other All
: Normal minor
: Small fix
Assigned To: gtk-bugs
gtk-bugs
: 172910 303460 303581 306595 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-03-06 15:44 UTC by Felix Riemann
Modified: 2006-01-25 15:31 UTC
See Also:
GNOME target: ---
GNOME version: 2.11/2.12


Attachments
Sample Program (964 bytes, text/plain)
2005-05-14 17:07 UTC, Christian Neumair
Details
Sample hebrew program (1.06 KB, text/plain)
2005-07-23 10:47 UTC, Christian Neumair
Details
screenshot showing hebrew issue (7.27 KB, image/png)
2005-09-27 11:09 UTC, Felix Riemann
Details

Description Felix Riemann 2005-03-06 15:44:51 UTC
Please describe the problem:
When I click the parent folder button in spatial mode frequently the text in the
statusbar is shortened (like when the window is to small for it). When I resize
the window now or open a new nautilus window the text gets expanded to its
orignal size again.

Steps to reproduce:
1. Open a new nautilus window (preferably a small one)
2. Start clicking the parent folder button
   Just open and close the parent folder list, don't choose one

Actual results:
After a while (depends on the window's size) the statusbar text get's shortened

Expected results:
text length should stay the same

Does this happen every time?
Yes

Other information:
Comment 1 Olav Vitters 2005-05-08 11:49:34 UTC
*** Bug 303460 has been marked as a duplicate of this bug. ***
Comment 2 Sebastien Bacher 2005-05-09 16:58:31 UTC
*** Bug 303581 has been marked as a duplicate of this bug. ***
Comment 3 Felix Riemann 2005-05-14 16:43:35 UTC
I just want to add that you don't actually need to open the menu to produce this
bug.
It's sufficient to click-and-hold the mouse on the location button and then move
it on and off the button repeatedly.
Comment 4 Christian Neumair 2005-05-14 17:05:44 UTC
Thanks for your bug report and your helpful comments!
I can verify that this is actually a GTK+ issue. It seems to do unexpected
re-ellipsizing when the button widget - which is packed in the statusbar BEFORE
the label - receives events. I can't reproduce this if a button in a statusbar
is packed after the statusbar-owned text widget.
Comment 5 Christian Neumair 2005-05-14 17:07:39 UTC
Created attachment 46430 [details]
Sample Program
Comment 6 Matthias Clasen 2005-05-16 04:55:56 UTC
2005-05-16  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkstatusbar.c (gtk_statusbar_size_allocate): Only shrink
	the label if we need to.  (#169390, Felix Riemann)
Comment 7 Christian Neumair 2005-05-22 08:01:15 UTC
*** Bug 172910 has been marked as a duplicate of this bug. ***
Comment 8 Sebastien Bacher 2005-06-06 10:10:10 UTC
*** Bug 306595 has been marked as a duplicate of this bug. ***
Comment 9 Christian Neumair 2005-07-21 17:21:40 UTC
*** Bug 172910 has been marked as a duplicate of this bug. ***
Comment 10 Christian Neumair 2005-07-23 10:43:48 UTC
*** Bug 172910 has been marked as a duplicate of this bug. ***
Comment 11 Christian Neumair 2005-07-23 10:46:52 UTC
The bug seems to be fixed for western locales, but with hebrew I still have issue.
Comment 12 Christian Neumair 2005-07-23 10:47:56 UTC
Created attachment 49609 [details]
Sample hebrew program

The attached program doesn't work correctly when used with LANG=he_IL.UTF-8.
Comment 13 Christian Neumair 2005-07-23 11:34:08 UTC
The allocation (gtk_statusbar_size_allocate) code doesn't look suspicious. It
seems to correctly move the allocation 18 px to the right and moves it to the
left again after allocation.
Comment 14 Daniel Llano 2005-09-17 16:19:55 UTC
I can't get this problem even using your latest progream with the hebrew locale.
Could you post a screenshot?
Comment 15 Felix Riemann 2005-09-27 11:09:30 UTC
Created attachment 52718 [details]
screenshot showing hebrew issue

here is a screenshot showing the problem
but i had to LC_ALL to hebrew or it wouldn't appear (since it's fixed for
LTR-writing)
normally there should be 21 characters in the statusbar + the '.'
here are only 4 1/2 left.
Comment 16 Felix Riemann 2006-01-24 19:53:34 UTC
This seems to have been fixed in HEAD by bug #322042.
Comment 17 Farzaneh Sarafraz 2006-01-25 14:19:26 UTC
Felix Riemann: Did you apply the patch from bug 322042 and try to reproduce this bug before changing the status to resolved? These two bugs don't seem to be the same and i cannot reproduce this one.
Christian Neumair: The patch from bug 322042 should fix your problem with Hebrew locale.
Comment 18 Behdad Esfahbod 2006-01-25 14:28:06 UTC
Farzaneh is right.  The fix for bug 322042 only fixes label *placement* for right-to-left labels.  Nothing else.
Comment 19 Behdad Esfahbod 2006-01-25 14:29:40 UTC
Can anybody still reproduce it with latest devel releases or HEAD?
Comment 20 Felix Riemann 2006-01-25 15:09:29 UTC
I checked it against a cvs checkout from yesterday and it worked (for left-to-right and right-to-left).

This bug was a problem with GtkStatusbar's size_allocation and was fixed in comment #6. But after that it looked like the fix didn't work for right-to-left locales (comment #11) -> the bug was reopened to find a fix for these,too.
Now, incorporating the fix from bug #322042 it was apparently a bug with GtkLabel itself and not a fault by GtkStatusbar.
That's at least how I see the case.
Comment 21 Behdad Esfahbod 2006-01-25 15:31:35 UTC
Seems like it should be FIXED, yes.