From 2c50f78767d557b861f366691aa7f5d6f41f7e3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ignacio=20Rodr=C3=ADguez?= Date: Sat, 7 Jan 2017 12:57:58 -0300 Subject: [PATCH] color changed --- examples/colorbutton.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/examples/colorbutton.py b/examples/colorbutton.py index 587f619..c7611fb 100644 --- a/examples/colorbutton.py +++ b/examples/colorbutton.py @@ -22,7 +22,12 @@ separator = Gtk.SeparatorToolItem() toolbar_box.toolbar.insert(separator, -1) separator.show() + +def color_changed_cb(button, pspec): + print button.get_color() + color_button = ColorToolButton() +color_button.connect("notify::color", color_changed_cb) toolbar_box.toolbar.insert(color_button, -1) color_button.show() -- 2.10.2