diff options
Diffstat (limited to 'gtk/gtkcellview.c')
-rw-r--r-- | gtk/gtkcellview.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/gtk/gtkcellview.c b/gtk/gtkcellview.c index d554dd8940..ba19dca00f 100644 --- a/gtk/gtkcellview.c +++ b/gtk/gtkcellview.c @@ -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: { |