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 600103 - Label misalignment in GtkIconView
Label misalignment in GtkIconView
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: GtkIconView
2.20.x
Other All
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
: 609752 624684 637037 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2009-10-30 08:30 UTC by Baptiste Mille-Mathias
Modified: 2011-02-18 04:55 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
The bug (51.83 KB, image/png)
2009-10-30 08:30 UTC, Baptiste Mille-Mathias
Details
example (10.46 KB, image/png)
2010-12-06 16:03 UTC, Baptiste Mille-Mathias
Details

Description Baptiste Mille-Mathias 2009-10-30 08:30:17 UTC
Created attachment 146555 [details]
The bug

Hi, 

The bug is the label for attachment is aligned on the right corner (see
screenshot), it seems an "unexpected" behaviour.

the bug seems to be triggered by the fact I set my menu with "text beside icon"
in the appearance capplet. I guess the text should be so more on the right and
placed beside and not under the attachement icon.

(sorry if I'm not clear enough, the headache I have is not helping writing bug
report)
Comment 1 Matthew Barnes 2009-10-30 09:55:00 UTC
This is an alignment miscalculation in GtkIconView.  Evolution does request the label to be centered within the cell, as is evident from the word wrapping.  Reassigning to GTK+.

This is easily reproducible with Evolution 2.28's attachment bar set to Icon View, especially with short filenames.
Comment 2 Javier Jardón (IRC: jjardon) 2010-05-20 19:41:18 UTC
*** Bug 609752 has been marked as a duplicate of this bug. ***
Comment 3 Javier Jardón (IRC: jjardon) 2010-05-20 19:47:22 UTC
@Baptiste: Can you still reproduce this with the latest GTK+ stable version (2.20.1) ?
Comment 4 Baptiste Mille-Mathias 2010-05-22 20:24:41 UTC
Hi Javier,

yes, the bug still exists.
Comment 5 Javier Jardón (IRC: jjardon) 2010-05-22 20:43:29 UTC
Version -> 2.20
Comment 6 Matthew Barnes 2010-07-18 20:41:57 UTC
*** Bug 624684 has been marked as a duplicate of this bug. ***
Comment 7 Bastien Nocera 2010-12-02 15:42:16 UTC
Fixed in master.

commit 66122b369e06d517fb5e8a9a7dd3002f3fc660ac
Author: Bastien Nocera <hadess@hadess.net>
Date:   Thu Dec 2 14:52:22 2010 +0000

    gtk: Centre the text under the icon in GtkIconView
    
    No point in setting the alignment to centre if we don't center it
    within the cell itself.

If people could test whether it has adverse effects in other branches, would be appreciated.
Comment 8 Baptiste Mille-Mathias 2010-12-06 16:03:56 UTC
Created attachment 175930 [details]
example

it seems the problems still occurs (look for "Removable Media").
Comment 9 Bastien Nocera 2010-12-13 14:06:32 UTC
*** Bug 637037 has been marked as a duplicate of this bug. ***
Comment 10 Bastien Nocera 2010-12-13 14:07:46 UTC
And it's also still a problem in the icon-view-refactor branch, which ignores the wrapping width, and leads to clipped icons.
Comment 11 Matthias Clasen 2011-02-18 04:55:11 UTC
I believe this is all fixed in 3.0