GtkCellView: Explicitly notify for orientation

This commit is contained in:
Matthias Clasen 2014-06-08 11:29:32 -04:00
parent 2d88a3ae30
commit d33b14bfbe

View File

@ -439,11 +439,14 @@ gtk_cell_view_set_property (GObject *object,
switch (param_id)
{
case PROP_ORIENTATION:
priv->orientation = g_value_get_enum (value);
if (priv->context)
gtk_cell_area_context_reset (priv->context);
_gtk_orientable_set_style_classes (GTK_ORIENTABLE (object));
if (priv->orientation != g_value_get_enum (value))
{
priv->orientation = g_value_get_enum (value);
if (priv->context)
gtk_cell_area_context_reset (priv->context);
_gtk_orientable_set_style_classes (GTK_ORIENTABLE (object));
g_object_notify_by_pspec (object, pspec);
}
break;
case PROP_BACKGROUND:
{