[gtk+] Fixing GtkColorButton to redraw itself when gtk_color_button_set_rgba() is called.
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Fixing GtkColorButton to redraw itself when gtk_color_button_set_rgba() is called.
- Date: Thu, 3 Feb 2011 13:54:39 +0000 (UTC)
commit d799d6d4f055a743e97d2a07d91bf373c582da7a
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date: Thu Feb 3 23:02:15 2011 +0900
Fixing GtkColorButton to redraw itself when gtk_color_button_set_rgba() is called.
gtk/gtkcolorbutton.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkcolorbutton.c b/gtk/gtkcolorbutton.c
index 3fd11cb..6084ee7 100644
--- a/gtk/gtkcolorbutton.c
+++ b/gtk/gtkcolorbutton.c
@@ -786,6 +786,8 @@ gtk_color_button_set_rgba (GtkColorButton *color_button,
color_button->priv->rgba = *rgba;
+ gtk_widget_queue_draw (color_button->priv->draw_area);
+
g_object_notify (G_OBJECT (color_button), "rgba");
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]