summaryrefslogtreecommitdiff
path: root/gtk/gtkcellareaboxcontext.h
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.van.berkom@gmail.com>2010-11-25 16:09:51 +0900
committerTristan Van Berkom <tristan.van.berkom@gmail.com>2010-11-25 16:09:51 +0900
commit9d0c2f6b37beee6032981759b0e1f8161ccd9d72 (patch)
tree0525d3c3661463dbb20fb543bcb98c168240e90a /gtk/gtkcellareaboxcontext.h
parent57a94bfb5364392a2469c592c4cf88536be7e061 (diff)
downloadgtk+-9d0c2f6b37beee6032981759b0e1f8161ccd9d72.tar.gz
Make GtkCellAreaBox handle rendering without a previous allocation in the orientation of choice.
This is so that treeviews can have some columns oriented vertically and some horizontally, usually the column will only allocate the areas width, having vertical columns without fixed row heights just means it's slower to render.
Diffstat (limited to 'gtk/gtkcellareaboxcontext.h')
-rw-r--r--gtk/gtkcellareaboxcontext.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/gtk/gtkcellareaboxcontext.h b/gtk/gtkcellareaboxcontext.h
index 4f9c02d9b1..01f7dc6cba 100644
--- a/gtk/gtkcellareaboxcontext.h
+++ b/gtk/gtkcellareaboxcontext.h
@@ -125,10 +125,15 @@ typedef struct {
gint size; /* Full allocated size of the cells in this group spacing inclusive */
} GtkCellAreaBoxAllocation;
-G_CONST_RETURN GtkCellAreaBoxAllocation *
+GtkCellAreaBoxAllocation *
gtk_cell_area_box_context_get_orientation_allocs (GtkCellAreaBoxContext *context,
gint *n_allocs);
+GtkCellAreaBoxAllocation *
+gtk_cell_area_box_context_allocate (GtkCellAreaBoxContext *context,
+ gint orientation_size,
+ gint *n_allocs);
+
G_END_DECLS
#endif /* __GTK_CELL_AREA_BOX_CONTEXT_H__ */