summaryrefslogtreecommitdiff
path: root/gtk/gtkcellareabox.c
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.van.berkom@gmail.com>2010-11-25 17:41:26 +0900
committerTristan Van Berkom <tristan.van.berkom@gmail.com>2010-11-25 17:41:26 +0900
commit2dd2c7ce054313a3e31b162ce78507c295926e0b (patch)
treee03608c8ec7887f3292ffbf729923b466c804e3f /gtk/gtkcellareabox.c
parent5f7787ab2ead2cdd11ebe17b16dd9498daaaf9c5 (diff)
downloadgtk+-2dd2c7ce054313a3e31b162ce78507c295926e0b.tar.gz
Added gtk_cell_renderer_get_aligned_area() and class vfunc.
Since a cell renderer might use more space than the natural size when recieving expand space it's impossible to know how much space is actually used to render content. Adding this virtual method to allow text renderers to implement it, the base default method uses height-for-width apis and aligns the cell assuming the renderer uses a fixed size. This commit removes the similar code from gtkcellarea and subclasses.
Diffstat (limited to 'gtk/gtkcellareabox.c')
-rw-r--r--gtk/gtkcellareabox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkcellareabox.c b/gtk/gtkcellareabox.c
index 1e2ce41e82..8950c53c0f 100644
--- a/gtk/gtkcellareabox.c
+++ b/gtk/gtkcellareabox.c
@@ -1094,7 +1094,7 @@ gtk_cell_area_box_render (GtkCellArea *area,
{
GdkRectangle cell_focus;
- gtk_cell_area_aligned_cell_area (area, widget, cell->renderer, &inner_area, &cell_focus);
+ gtk_cell_renderer_get_aligned_area (cell->renderer, widget, flags, &inner_area, &cell_focus);
/* Accumulate the focus rectangle for all focus siblings */
if (first_focus_cell)