[gtk+] color-button: Notify "color" and "alpha" properties when changing the rgba



commit 3abc31a2d1ff1a3781469243937d62b26513c81f
Author: Christian Persch <chpe gnome org>
Date:   Mon Nov 21 14:19:51 2011 +0100

    color-button: Notify "color" and "alpha" properties when changing the rgba
    
    Bug #664469.

 gtk/gtkcolorbutton.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkcolorbutton.c b/gtk/gtkcolorbutton.c
index 5f13c54..7494565 100644
--- a/gtk/gtkcolorbutton.c
+++ b/gtk/gtkcolorbutton.c
@@ -791,6 +791,8 @@ gtk_color_button_set_rgba (GtkColorButton *color_button,
 
   gtk_widget_queue_draw (color_button->priv->draw_area);
 
+  g_object_notify (G_OBJECT (color_button), "color");
+  g_object_notify (G_OBJECT (color_button), "alpha");
   g_object_notify (G_OBJECT (color_button), "rgba");
 }
 



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