summaryrefslogtreecommitdiff
path: root/gtk/gtkcellview.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2014-06-08 11:29:32 -0400
committerMatthias Clasen <mclasen@redhat.com>2014-06-09 13:30:57 -0400
commitd33b14bfbe4d2a3be05b04824d4a16edaf4ad23c (patch)
tree3bcd22b2da15a780ff78e94166e59eb78f3808a3 /gtk/gtkcellview.c
parent2d88a3ae300d6e1c8faa7391bbab9746f2131092 (diff)
downloadgtk+-d33b14bfbe4d2a3be05b04824d4a16edaf4ad23c.tar.gz
GtkCellView: Explicitly notify for orientation
Diffstat (limited to 'gtk/gtkcellview.c')
-rw-r--r--gtk/gtkcellview.c13
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:
{