[gtk+/wip/colorchooser-v2: 59/84] GtkColorChooserDialog: propagate notification for ::show-editor



commit 3ea5860118ee990f5986b3ec902473b8b140f805
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Feb 8 21:54:55 2012 -0500

    GtkColorChooserDialog: propagate notification for ::show-editor

 gtk/gtkcolorchooserdialog.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkcolorchooserdialog.c b/gtk/gtkcolorchooserdialog.c
index bb40067..2d9070f 100644
--- a/gtk/gtkcolorchooserdialog.c
+++ b/gtk/gtkcolorchooserdialog.c
@@ -68,7 +68,7 @@ propagate_notify (GObject               *o,
                   GParamSpec            *pspec,
                   GtkColorChooserDialog *cc)
 {
-  g_object_notify (G_OBJECT (cc), "rgba");
+  g_object_notify (G_OBJECT (cc), pspec->name);
 }
 
 static void
@@ -113,6 +113,9 @@ gtk_color_chooser_dialog_init (GtkColorChooserDialog *cc)
   g_signal_connect (priv->chooser, "notify::rgba",
                     G_CALLBACK (propagate_notify), cc);
 
+  g_signal_connect (priv->chooser, "notify::show-editor",
+                    G_CALLBACK (propagate_notify), cc);
+
   g_signal_connect (priv->chooser, "color-activated",
                     G_CALLBACK (color_activated_cb), cc);
 



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