Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/intro
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2007-02-27 20:02:42 (GMT)
committer Dan Williams <dcbw@redhat.com>2007-02-27 20:02:42 (GMT)
commitf5051b7c14cdd7990387cb3aaa98119fe522c5fe (patch)
tree6980a38666a67af576e1c17f79af239e251e473a /shell/intro
parenta8cabac590457c6c7dd6eb97b88d4300490961a9 (diff)
Add get_color() function
Diffstat (limited to 'shell/intro')
-rw-r--r--shell/intro/colorpicker.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/shell/intro/colorpicker.py b/shell/intro/colorpicker.py
index 8464124..008acbe 100644
--- a/shell/intro/colorpicker.py
+++ b/shell/intro/colorpicker.py
@@ -117,19 +117,19 @@ class ColorPicker(hippo.CanvasBox, hippo.CanvasItem):
stroke_color=color.HTMLColor(self._fg_hex),
fill_color=color.HTMLColor(self._bg_hex))
self._set_random_colors()
- self._emit_color()
self._xo.connect('activated', self._xo_activated_cb)
self.append(self._xo)
def _xo_activated_cb(self, item):
self._set_random_colors()
- self._emit_color()
-
- def _emit_color(self):
xo_color = XoColor('%s,%s' % (self._xo.props.stroke_color.get_html(),
self._xo.props.fill_color.get_html()))
self.emit('color', xo_color)
+ def get_color(self):
+ return XoColor('%s,%s' % (self._xo.props.stroke_color.get_html(),
+ self._xo.props.fill_color.get_html()))
+
def _update_xo_hex(self, fg=None, bg=None):
"""set the colors of the XO man"""
if fg: