summaryrefslogtreecommitdiff
path: root/gtk/gtkcellview.c
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.van.berkom@gmail.com>2010-11-27 16:32:36 +0900
committerTristan Van Berkom <tristan.van.berkom@gmail.com>2011-01-04 23:37:10 +0900
commit15ac4be60f32e9ba07f932c456abce0262dffb58 (patch)
treef19f030042a4bcdd730cf81edcd8b55a97f7b48f /gtk/gtkcellview.c
parentab3b75aeb15e9e6726724f360bcfef9eef4270f4 (diff)
downloadgtk+-15ac4be60f32e9ba07f932c456abce0262dffb58.tar.gz
Fixed combo-refactor branch for recent switch to gtk_cell_area_context_reset() api.
Diffstat (limited to 'gtk/gtkcellview.c')
-rw-r--r--gtk/gtkcellview.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk/gtkcellview.c b/gtk/gtkcellview.c
index 6b02118de5..f62b71c45e 100644
--- a/gtk/gtkcellview.c
+++ b/gtk/gtkcellview.c
@@ -419,7 +419,7 @@ gtk_cell_view_set_property (GObject *object,
case PROP_ORIENTATION:
view->priv->orientation = g_value_get_enum (value);
if (view->priv->context)
- gtk_cell_area_context_flush (view->priv->context);
+ gtk_cell_area_context_reset (view->priv->context);
break;
case PROP_BACKGROUND:
{
@@ -547,9 +547,9 @@ gtk_cell_view_size_allocate (GtkWidget *widget,
*/
if (priv->fit_model)
gtk_cell_area_context_allocate (priv->context, allocation->width, allocation->height);
- else if (alloc_width <= 0 && priv->orientation == GTK_ORIENTATION_HORIZONTAL)
+ else if (alloc_width != allocation->width && priv->orientation == GTK_ORIENTATION_HORIZONTAL)
gtk_cell_area_context_allocate (priv->context, allocation->width, -1);
- else if (alloc_height <= 0 && priv->orientation == GTK_ORIENTATION_VERTICAL)
+ else if (alloc_height != allocation->height && priv->orientation == GTK_ORIENTATION_VERTICAL)
gtk_cell_area_context_allocate (priv->context, -1, allocation->height);
}
@@ -862,7 +862,7 @@ row_changed_cb (GtkTreeModel *model,
{
/* Resize everything in our context if our row changed */
if (gtk_tree_path_compare (row_path, path) == 0)
- gtk_cell_area_context_flush (view->priv->context);
+ gtk_cell_area_context_reset (view->priv->context);
gtk_tree_path_free (row_path);
}
@@ -1343,7 +1343,7 @@ gtk_cell_view_set_fit_model (GtkCellView *cell_view,
{
priv->fit_model = fit_model;
- gtk_cell_area_context_flush (cell_view->priv->context);
+ gtk_cell_area_context_reset (cell_view->priv->context);
g_object_notify (G_OBJECT (cell_view), "fit-model");
}