[gtk+] GtkCellRendererText: Use G_PARAM_EXPLICIT_NOTIFY for 'alignment'
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GtkCellRendererText: Use G_PARAM_EXPLICIT_NOTIFY for 'alignment'
- Date: Mon, 9 Jun 2014 17:40:34 +0000 (UTC)
commit 1139b219970f27d74979d362fc294f67258473fb
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Jun 7 14:07:55 2014 -0400
GtkCellRendererText: Use G_PARAM_EXPLICIT_NOTIFY for 'alignment'
gtk/gtkcellrenderertext.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkcellrenderertext.c b/gtk/gtkcellrenderertext.c
index 6402b4b..127f304 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]