Re: Reducing space between treeview rows
- From: Murray Cumming <murrayc murrayc com>
- To: Morten Welinder <mortenw gnone org>
- Cc: doug nostar net, gtk-devel-list gnome org
- Subject: Re: Reducing space between treeview rows
- Date: Fri, 28 Apr 2006 09:12:47 +0200
On Thu, 2006-04-27 at 11:13 -0400, Morten Welinder wrote:
> > Some time ago I posted to various gtk related lists about reducing
> > padding between treeview rows.
>
> The official word is that it cannot be done:
>
> || 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.
>
> Now, if that is not good enough for you, what you need to realize is
> that GtkCellRendererText reserves space not only for what is in the
> cell, but also what you might one day put in there. Think "accented
> Chinese characters with a few underlines".
>
> What you can do is to go into gtkcellrenderertext.c's get_size and
> change
>
> pango_layout_get_pixel_extents (layout, NULL, &rect);
>
> to
>
> pango_layout_get_pixel_extents (layout, &rect, NULL);
So this means that a custom cell render can achieve the desired effect.
--
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]