summaryrefslogtreecommitdiff
path: root/gtk/gtkcellrenderertext.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2014-06-07 14:07:55 -0400
committerMatthias Clasen <mclasen@redhat.com>2014-06-09 13:30:54 -0400
commit1139b219970f27d74979d362fc294f67258473fb (patch)
treedd8e5f199c521b31f6dfb9494afc2402b0b8908a /gtk/gtkcellrenderertext.c
parent8b1757b6e044d9a17ed16eed24052a96291fe843 (diff)
downloadgtk+-1139b219970f27d74979d362fc294f67258473fb.tar.gz
GtkCellRendererText: Use G_PARAM_EXPLICIT_NOTIFY for 'alignment'
Diffstat (limited to 'gtk/gtkcellrenderertext.c')
-rw-r--r--gtk/gtkcellrenderertext.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/gtk/gtkcellrenderertext.c b/gtk/gtkcellrenderertext.c
index 6402b4be91..127f304fa1 100644
--- a/gtk/gtkcellrenderertext.c
+++ b/gtk/gtkcellrenderertext.c
@@ -622,7 +622,7 @@ G_GNUC_END_IGNORE_DEPRECATIONS
P_("How to align the lines"),
PANGO_TYPE_ALIGNMENT,
PANGO_ALIGN_LEFT,
- GTK_PARAM_READWRITE));
+ GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
/**
* GtkCellRendererText:placeholder-text:
@@ -1469,7 +1469,11 @@ gtk_cell_renderer_text_set_property (GObject *object,
break;
case PROP_ALIGN:
- priv->align = g_value_get_enum (value);
+ if (priv->align != g_value_get_enum (value))
+ {
+ priv->align = g_value_get_enum (value);
+ g_object_notify (object, "alignment");
+ }
priv->align_set = TRUE;
g_object_notify (object, "align-set");
break;