Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/coloritem.py
diff options
context:
space:
mode:
Diffstat (limited to 'coloritem.py')
-rw-r--r--coloritem.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/coloritem.py b/coloritem.py
index 1db0e69..03d0955 100644
--- a/coloritem.py
+++ b/coloritem.py
@@ -1,5 +1,5 @@
"""The color item gives the user the posibility to choice a colour."""
-# Copyright (C) 2012 S. Daniel Francis <francis@sugarlabs.org>
+# Copyright (C) 2012-2013 S. Daniel Francis <francis@sugarlabs.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -24,6 +24,7 @@ import gtk
from colors import color2string
from item import Item
+import stock
class ColorItem(Item):
@@ -58,7 +59,7 @@ class ColorItem(Item):
if self.tooltip:
title = self.tooltip
else:
- title = gtk.stock_lookup(self.stock_id)[1]
+ title = stock.get_title(self.stock_id)
dialog = gtk.ColorSelectionDialog(title)
dialog.set_transient_for(self.parent)
color_selection = dialog.get_color_selection()