[gtk+] entry: g_object_notify*( when we change the invisible char



commit a9a2a08162875c502e00b7bab815b0e5156e908b
Author: Benjamin Otte <otte redhat com>
Date:   Tue Apr 19 19:54:08 2011 +0200

    entry: g_object_notify*( when we change the invisible char

 gtk/gtkentry.c |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index ce53b1b..c130158 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -4539,7 +4539,15 @@ gtk_entry_update_cached_style_values (GtkEntry *entry)
   priv->interior_focus = interior_focus;
 
   if (!priv->invisible_char_set)
-    priv->invisible_char = find_invisible_char (GTK_WIDGET (entry));
+    {
+      gunichar ch = find_invisible_char (GTK_WIDGET (entry));
+
+      if (priv->invisible_char != ch)
+        {
+          priv->invisible_char = ch;
+          g_object_notify (G_OBJECT (entry), "invisible-char");
+        }
+    }
 }
 
 static void 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]