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 563999 - GtkIconView icon labels are incorrently repositioning themselves when spacing is set
GtkIconView icon labels are incorrently repositioning themselves when spacing...
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: Widget: GtkIconView
2.14.x
Other All
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2008-12-10 15:27 UTC by Alexander Shaduri
Modified: 2018-02-10 04:36 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Test case (2.62 KB, text/x-csrc)
2008-12-10 15:28 UTC, Alexander Shaduri
Details

Description Alexander Shaduri 2008-12-10 15:27:27 UTC
Please describe the problem:
I have a GtkIconView with several icons, and various positioning properties set, like:
        gtk_icon_view_set_item_width (GTK_ICON_VIEW (icon_view), 130);
        gtk_icon_view_set_spacing (GTK_ICON_VIEW (icon_view), 3);
        gtk_icon_view_set_row_spacing (GTK_ICON_VIEW (icon_view), 8);
        gtk_icon_view_set_column_spacing (GTK_ICON_VIEW (icon_view), 5);
        gtk_icon_view_set_margin (GTK_ICON_VIEW (icon_view), 10);

Everything is positioned just fine. However, during runtime I change one of the icons' tooltip, and the labels suddenly become aligned to left.
There are two problems here:
1. I only change the tooltip column contents, which shouldn't invoke repositioning.
2. The actual visually observed behaviour is obviously incorrect.

Steps to reproduce:
1. Compile my test case.
2. Double-click the first icon. This changes the icon's tooltip column contents.


Actual results:
I see the incorrect label positioning.

Expected results:
1. If I'm changing only tooltips, the repositioning obviously shouldn't happen.
2. Even if I'm changing the text, the label positions are wrong.

Does this happen every time?
Yes

Other information:
Comment 1 Alexander Shaduri 2008-12-10 15:28:21 UTC
Created attachment 124352 [details]
Test case

Double-click the first icon to see the effect.
Comment 2 Emmanuel Rodriguez 2009-02-13 20:32:28 UTC
I have the same behavior in an applicationt. I use the icon view to display the results of a search. When I perform a new search the results are displayed properly but if the next search returns the same results then the labels are shifted to the left. In my application performing a query that returns different results will fix the issue. This is until a query returns the same results as the previous one.

This seems like a regression because my application started behaving this way after I upgraded my Linux distribution. I have a colleague that's using the same application unaltered (it's a Perl Gtk2 script) and he doesn't experience this quirks.
Comment 3 Matthias Clasen 2018-02-10 04:36:51 UTC
We're moving to gitlab! As part of this move, we are closing bugs that haven't seen activity in more than 5 years. If this issue is still imporant to you and
still relevant with GTK+ 3.22 or master, please consider creating a gitlab issue
for it.