diff options
author | Tristan Van Berkom <tristan.van.berkom@gmail.com> | 2010-11-28 18:52:08 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristan.van.berkom@gmail.com> | 2010-11-29 10:55:50 +0900 |
commit | c1cbc8790e84f7cc455e2cbf5e2d5b7ec07abbbd (patch) | |
tree | 969284f27304d12e9a29e02a8b2d0fc32969741d /gtk/gtkcellareacontext.c | |
parent | 217f6883769a954d2193f6931051ceaffee46264 (diff) | |
download | gtk+-c1cbc8790e84f7cc455e2cbf5e2d5b7ec07abbbd.tar.gz |
Removed gtk_cell_area_context_sum_preferred_width/height apis.
Turns out theres not much reason to do this in a separate api,
now we just sum up the sizes of aligned cell groups in GtkCellAreaContextBox
when pushing the group size.
Diffstat (limited to 'gtk/gtkcellareacontext.c')
-rw-r--r-- | gtk/gtkcellareacontext.c | 38 |
1 files changed, 3 insertions, 35 deletions
diff --git a/gtk/gtkcellareacontext.c b/gtk/gtkcellareacontext.c index 0cf9357e4a..6b78d20829 100644 --- a/gtk/gtkcellareacontext.c +++ b/gtk/gtkcellareacontext.c @@ -94,10 +94,8 @@ gtk_cell_area_context_class_init (GtkCellAreaContextClass *class) object_class->set_property = gtk_cell_area_context_set_property; /* GtkCellAreaContextClass */ - class->reset = gtk_cell_area_context_real_reset; - class->sum_preferred_width = NULL; - class->sum_preferred_height = NULL; - class->allocate = gtk_cell_area_context_real_allocate; + class->reset = gtk_cell_area_context_real_reset; + class->allocate = gtk_cell_area_context_real_allocate; g_object_class_install_property (object_class, PROP_CELL_AREA, @@ -279,43 +277,13 @@ gtk_cell_area_context_reset (GtkCellAreaContext *context) } void -gtk_cell_area_context_sum_preferred_width (GtkCellAreaContext *context) -{ - GtkCellAreaContextClass *class; - - g_return_if_fail (GTK_IS_CELL_AREA_CONTEXT (context)); - - class = GTK_CELL_AREA_CONTEXT_GET_CLASS (context); - - if (class->sum_preferred_width) - class->sum_preferred_width (context); -} - -void -gtk_cell_area_context_sum_preferred_height (GtkCellAreaContext *context) -{ - GtkCellAreaContextClass *class; - - g_return_if_fail (GTK_IS_CELL_AREA_CONTEXT (context)); - - class = GTK_CELL_AREA_CONTEXT_GET_CLASS (context); - - if (class->sum_preferred_height) - class->sum_preferred_height (context); -} - -void gtk_cell_area_context_allocate (GtkCellAreaContext *context, gint width, gint height) { - GtkCellAreaContextClass *class; - g_return_if_fail (GTK_IS_CELL_AREA_CONTEXT (context)); - class = GTK_CELL_AREA_CONTEXT_GET_CLASS (context); - - class->allocate (context, width, height); + GTK_CELL_AREA_CONTEXT_GET_CLASS (context)->allocate (context, width, height); } void |