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 596767 - Add more options for GtkIconView renderers
Add more options for GtkIconView renderers
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: Widget: GtkIconView
2.16.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
: 619849 632143 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2009-09-29 18:04 UTC by Milan Crha
Modified: 2018-02-10 03:32 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Milan Crha 2009-09-29 18:04:14 UTC
Please add more options to influence GtkIconView view, as the actual is quite tough to change. To know what I'm talking about, please see this screen shot:
https://bugzilla.gnome.org/attachment.cgi?id=144276

On the left is actual evolution master branch, which is using GtkIconView, and on the right is the old approach from gnome-2-28 branch, with ETree. I would like to see both same, but there doesn't seem to be a direct way to get/set GtkCellRenderer on the cell view (there is a gtk_icon_view_get_cursor, but it really isn't what I mean).

Thanks in advance.
Comment 1 Matthew Barnes 2009-09-29 18:42:59 UTC
The new GtkIconView::item-padding property in 2.18 might help here:
http://library.gnome.org/devel/gtk/stable/GtkIconView.html#GtkIconView--item-padding
Comment 2 Matthew Barnes 2009-09-29 18:48:00 UTC
gtk_icon_view_calculate_item_size() could also use some tuning too, though I don't have any specific suggestions yet.  What I've observed from Evolution's attachment bar is the item size seems to be calculated and locked based on the first item added.  If the first item is really narrow, subsequent wider items are artifically squeezed to match the width of the first item.  Needs to be more adaptive.
Comment 3 Matthew Barnes 2010-05-27 17:33:54 UTC
*** Bug 619849 has been marked as a duplicate of this bug. ***
Comment 4 Jean-François Fortin Tam 2010-05-27 19:53:34 UTC
Is this only about being able to set the width of the iconview columns? If yes, I think GTK+ is already able to do that; at least, it was done with PiTiVi 0.13.4.
Comment 5 Matthew Barnes 2010-05-27 20:56:14 UTC
I think it's more about figuring out an appropriate width on its own, and perhaps also adapting its requisition as more items are added.
Comment 6 Matthew Barnes 2010-10-14 17:00:50 UTC
*** Bug 632143 has been marked as a duplicate of this bug. ***
Comment 7 Matthias Clasen 2018-02-10 03:32:19 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.