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:
{
*/
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);
}
{
/* 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);
}
{
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");
}
gtk_menu_shell_insert (GTK_MENU_SHELL (menu), item, index);
/* Resize everything */
- gtk_cell_area_context_flush (menu->priv->context);
+ gtk_cell_area_context_reset (menu->priv->context);
}
}
else
gtk_widget_destroy (item);
/* Resize everything */
- gtk_cell_area_context_flush (menu->priv->context);
+ gtk_cell_area_context_reset (menu->priv->context);
}
}
else