Re: GtkTreeView: how to reduce size of cell



Hello,

On Sat, Dec 15, 2007 at 12:03:22PM +0100, Romain Li?vin wrote:
I'm working on a debugger 
(http://www.lievin.net/downloads/lpg/vti_dock.png). As you can see, 
there is a lot of space between each line of the left upper frame.

How can I decrease space between lines or value of padding in cell?

There are two configurable things that play part in determining the
amount of vertical space between cells:

 1) Cell padding.  This can be set via the xpad and ypad properties on
    GtkCellRenderer.  GtkCellRendererText sets both of these to 2 by
    default.

 2) The "vertical-separator" style properties, by default this is 2.
    This value should be set by the theme.  If you really want to
    override the theme setting, you can do so via the GtkRC APIs (there
    should be enough information on how to do this on the web).


Hope this helps.


regards,

-kris.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]