[gtk+/combo-refactor: 32/45] Updated GtkCellView for new	gtk_cell_area_context_allocate() api.
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gtk+/combo-refactor: 32/45] Updated GtkCellView for new	gtk_cell_area_context_allocate() api.
- Date: Sun,  5 Dec 2010 07:03:44 +0000 (UTC)
commit 661050540aaa277e6765e263cd1081e58ad799a9
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date:   Fri Nov 26 21:30:30 2010 +0900
    Updated GtkCellView for new gtk_cell_area_context_allocate() api.
 gtk/gtkcellview.c |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/gtk/gtkcellview.c b/gtk/gtkcellview.c
index 76ffec2..22eb1d0 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
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]