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 646055 - The thumbnails in the sidebar have a huge useless/annoying margin
The thumbnails in the sidebar have a huge useless/annoying margin
Status: RESOLVED DUPLICATE of bug 680953
Product: gtk+
Classification: Platform
Component: Widget: GtkIconView
3.0.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
: 646426 651857 652889 653128 (view as bug list)
Depends on:
Blocks: 541424
 
 
Reported: 2011-03-29 09:00 UTC by jorchube
Modified: 2015-10-16 21:02 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
evince screenshot showing the huge margins of the thumbnails (92.76 KB, image/png)
2011-03-29 19:30 UTC, jorchube
Details

Description jorchube 2011-03-29 09:00:54 UTC
The thumbnails in the sidebar have a huge margin, that makes appear the horizontal scrollbar when it's actually not needed. Also, the scrollbar makes a strange "zigzag" when scrolling down the whole document and the focused thumbnail changes.

Attached screenshot.

Evince 2.91.93
Archlinux i686
Comment 1 Carlos Garcia Campos 2011-03-29 16:33:43 UTC
It seems you forgot the attachment.
Comment 2 jorchube 2011-03-29 19:30:26 UTC
Created attachment 184627 [details]
evince screenshot showing the huge margins of the thumbnails
Comment 3 jorchube 2011-03-29 19:33:12 UTC
Seems that I'm not very used to this attachments system... now I "forgot" the text :S

Well, only say thanks to all devs and contributors for your work ;)

And If you can not reproduce the part of the "zigzag" I'll try to make a .gif or something.
Comment 4 Carlos Garcia Campos 2011-03-30 06:47:50 UTC
That's the GtkIconView default selection in GTK+3, I'm not sure if we can change that from the theme, but I don't think so. Reassigning.
Comment 5 Carlos Garcia Campos 2011-06-05 11:25:24 UTC
*** Bug 651857 has been marked as a duplicate of this bug. ***
Comment 6 Carlos Garcia Campos 2011-06-19 09:16:46 UTC
*** Bug 652889 has been marked as a duplicate of this bug. ***
Comment 7 José Aliste 2011-06-21 22:14:40 UTC
*** Bug 653128 has been marked as a duplicate of this bug. ***
Comment 8 Felix Möller 2012-04-13 08:49:20 UTC
This bug got more severe with Evince 3.4.
There the Thumbnails are neither scalled according to the width of the side panel nor can the size of the side panel be made smaller than the initial size.
Comment 9 Carlos Garcia Campos 2012-09-30 11:02:15 UTC
The problem is related to bug #680953, in adjust_wrap_width() in gtkiconview.c a fixed size is set for the text cell, that is calculated as the double of the pixbuf cell. So the cell area always requests a minimum size of cell pixbuf width * 2. I've workaround the issue by using custom cell renderers in Evince, see: 

http://git.gnome.org/browse/evince/commit/?id=1e88e7fd7630c28453475e48b98941ce11b130a6

A possible solution would be to fix bug #680953 to respect the item width and use gtk_icon_view_set_item_width() in Evince.
Comment 10 Felix Möller 2012-10-05 06:27:11 UTC
I guess this has been fixed with http://git.gnome.org/browse/evince/commit/?id=1e88e7fd7630c28453475e48b98941ce11b130a6 ?
Comment 11 Carlos Garcia Campos 2012-10-05 16:07:23 UTC
Yes, it's "fixed" in evince, but it's a workaround in the end, it would be better to fix bug #680953 and use the convenient GtkIconView api instead of custom cell renderers. I'm going to mark this a duplicate of #680953, because closing it as fixed being a gtk+ issue doesn't look right to me.

*** This bug has been marked as a duplicate of bug 680953 ***
Comment 12 Germán Poo-Caamaño 2015-10-16 21:02:30 UTC
*** Bug 646426 has been marked as a duplicate of this bug. ***