summaryrefslogtreecommitdiff
path: root/gtk/gtkcellview.c
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.van.berkom@gmail.com>2010-11-26 21:30:30 +0900
committerTristan Van Berkom <tristan.van.berkom@gmail.com>2011-01-04 23:37:09 +0900
commitbd1b4ddf75d567e3ad95a663ae747c829b77f62c (patch)
treeff4e7ad2e08484e22801c2d820b1ed393ba2328b /gtk/gtkcellview.c
parent26a6965d268a5ef05adbe943be43d647f533cce8 (diff)
downloadgtk+-bd1b4ddf75d567e3ad95a663ae747c829b77f62c.tar.gz
Updated GtkCellView for new gtk_cell_area_context_allocate() api.
Diffstat (limited to 'gtk/gtkcellview.c')
-rw-r--r--gtk/gtkcellview.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/gtk/gtkcellview.c b/gtk/gtkcellview.c
index 3a5031b41d..6b02118de5 100644
--- a/gtk/gtkcellview.c
+++ b/gtk/gtkcellview.c
@@ -546,14 +546,11 @@ gtk_cell_view_size_allocate (GtkWidget *widget,
* allocate every time.
*/
if (priv->fit_model)
- {
- gtk_cell_area_context_allocate_width (priv->context, allocation->width);
- gtk_cell_area_context_allocate_height (priv->context, allocation->height);
- }
+ gtk_cell_area_context_allocate (priv->context, allocation->width, allocation->height);
else if (alloc_width <= 0 && priv->orientation == GTK_ORIENTATION_HORIZONTAL)
- gtk_cell_area_context_allocate_width (priv->context, allocation->width);
+ gtk_cell_area_context_allocate (priv->context, allocation->width, -1);
else if (alloc_height <= 0 && priv->orientation == GTK_ORIENTATION_VERTICAL)
- gtk_cell_area_context_allocate_height (priv->context, allocation->height);
+ gtk_cell_area_context_allocate (priv->context, -1, allocation->height);
}
static void