GtkColorChooserDialog: propagate notification for ::show-editor

This commit is contained in:
Matthias Clasen 2012-02-08 21:54:55 -05:00
parent 05e2124f24
commit 1f05f94885

View File

@ -68,7 +68,7 @@ propagate_notify (GObject *o,
GParamSpec *pspec, GParamSpec *pspec,
GtkColorChooserDialog *cc) GtkColorChooserDialog *cc)
{ {
g_object_notify (G_OBJECT (cc), "rgba"); g_object_notify (G_OBJECT (cc), pspec->name);
} }
static void static void
@ -113,6 +113,9 @@ gtk_color_chooser_dialog_init (GtkColorChooserDialog *cc)
g_signal_connect (priv->chooser, "notify::rgba", g_signal_connect (priv->chooser, "notify::rgba",
G_CALLBACK (propagate_notify), cc); 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_signal_connect (priv->chooser, "color-activated",
G_CALLBACK (color_activated_cb), cc); G_CALLBACK (color_activated_cb), cc);