]> Pileus Git - ~andy/gtk/commit
Finally really support rendering of cells in an unallocated context.
authorTristan Van Berkom <tristan.van.berkom@gmail.com>
Fri, 26 Nov 2010 12:26:24 +0000 (21:26 +0900)
committerTristan Van Berkom <tristan.van.berkom@gmail.com>
Fri, 26 Nov 2010 12:38:10 +0000 (21:38 +0900)
commit487223d480578457f924470c1a1d73eb261eefd7
treee6888ecfc4a29875b54e5ba349a47f36ccc183fd
parentfa3c8f182edcddcfb948513fbdadeeec2e059fe0
Finally really support rendering of cells in an unallocated context.

What this means is basically that a vertically oriented GtkCellAreaBox
will render cells properly even if the height is not constant for every
for of data in the said GtkCellAreaContext (i.e. the height was not allocated
by gtk_cell_area_context_allocate).

This is done completely on the fly and so is much more heavy duty
at render time (considerably slower but not visibly noticable in
lightweight views like GtkTreeMenu). Note that cell alignments
are not possible in an unallocated orientation, each row of data
individually receives only enough space to render the independant
row and no space is reserved for alignments if the size is not
a constant size across rows in the same context.
gtk/gtkcellareabox.c
gtk/gtkcellareaboxcontext.c
gtk/gtkcellareaboxcontext.h
gtk/gtkcellareacontext.c
gtk/gtkcellareacontext.h