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 102605 - GtkTreeView row padding not configurable
GtkTreeView row padding not configurable
Status: RESOLVED WONTFIX
Product: gtk+
Classification: Platform
Component: Widget: GtkTreeView
2.2.x
Other Linux
: Normal normal
: Small API
Assigned To: gtktreeview-bugs
gtktreeview-bugs
: 117472 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2003-01-05 19:12 UTC by Richard Eckart
Modified: 2005-07-13 13:59 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Richard Eckart 2003-01-05 19:12:50 UTC
Every row in a GtkTreeView seems to have a padding of 3 pixels above and
below the row. This ammounts to 6 pixels space between two lines of text
and this is annoying. Especially for people who use small font sizes and
since there seems to be no way to reduce this space!!

On #gtk+ I got told that this space is needed for the focus rectangle. I
checked and found that the focus rectangle also uses too much space.
Instead of reusing a common pixel-line between two rows, it is completely
contained in one row. (GtkCList for example does reuse a common line).

I agree that it would look more packed if the 3 pixel padding would be
lowered to 1 pixel (for the focus rectangle), but I want it that way, so I
can get more on screen.

IMHO this padding should be configurable from .gtkrc-2.0 using a GtkStyle
property like "vertical-padding".
Comment 1 Kristian Rietveld 2003-01-23 21:59:58 UTC
Property ==> 2.4 API freeze.
Comment 2 Kristian Rietveld 2003-07-17 17:49:22 UTC
*** Bug 117472 has been marked as a duplicate of this bug. ***
Comment 3 Morten Welinder 2003-07-17 18:28:43 UTC
Note, that bug 117472 covers more than this bug -- pango leaves space
vertically for what might be in the box, not just what actually is
there.  (I.e., room enough for \^A as well as "j".)
Comment 4 Kristian Rietveld 2005-07-13 13:59:09 UTC
You probably want to set horizontal-padding and vertical-padding (both
GtkTreeView style properties) to zero (they are not zero by default). We can't
shave more space than that off.