[sugar] [PATCH] Color keep icon (#3939)

Eben Eliason eben.eliason
Wed Jun 25 13:42:41 EDT 2008


Pretty straightforward.

---
 src/sugar/activity/activity.py |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/src/sugar/activity/activity.py b/src/sugar/activity/activity.py
index 43d75ed..3c35de5 100644
--- a/src/sugar/activity/activity.py
+++ b/src/sugar/activity/activity.py
@@ -127,7 +127,11 @@ class ActivityToolbar(gtk.Toolbar):

         self._update_share()

-        self.keep = ToolButton('document-save', tooltip=_('Keep'))
+        self.keep = ToolButton(tooltip=_('Keep'))
+        keep_icon = Icon(icon_name='document-save',
+                         xo_color=profile.get_color())
+        self.keep.set_icon_widget(keep_icon)
+        keep_icon.show()
         self.keep.props.accelerator = '<Ctrl>S'
         self.keep.connect('clicked', self.__keep_clicked_cb)
         self.insert(self.keep, -1)
--



More information about the Sugar-devel mailing list