GNOME Bugzilla – Bug 102605
GtkTreeView row padding not configurable
Last modified: 2005-07-13 13:59:09 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".
Property ==> 2.4 API freeze.
*** Bug 117472 has been marked as a duplicate of this bug. ***
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".)
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.