Re: Reducing space between treeview rows



>> change
>> 
>>   pango_layout_get_pixel_extents (layout, NULL, &rect);
>> 
>> to
>> 
>>   pango_layout_get_pixel_extents (layout, &rect, NULL);

Even better:

  pango_layout_get_extents (layout, &rect, NULL);
  rect.width = (rect.width + PANGO_SCALE - 1) / PANGO_SCALE;
  rect.height = (rect.height + PANGO_SCALE - 1) / PANGO_SCALE;

I.e., round up.

> So this means that a custom cell render can achieve the desired effect.

Yes and no.  Yes, you can create treeviews that look as desired, but
no, the existing file chooser is not going to get better.

IMHO it would make sense to support this on the existing
GtkCellRendererText with an extra [style?] attribute.  There are a
number of things to sort out, though, such as what to do in
fixed-height.

M.



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