[Commits] sugar-toolkit branch master updated.
Tomeu Vizoso
tomeu at tomeuvizoso.net
Fri Dec 5 12:02:24 EST 2008
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "/home/olpc-code/git/sugar-toolkit".
The branch, master has been updated
via e0c2017c50f9099041352e63e5355c9b1196aed2 (commit)
from 33e94723da52e34b5df0524f5b98e49fe4c9c238 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
src/sugar/graphics/menuitem.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit e0c2017c50f9099041352e63e5355c9b1196aed2
Author: Tomeu Vizoso <tomeu at tomeuvizoso.net>
Date: Fri Dec 5 18:02:13 2008 +0100
Add colors to icons in menu items
diff --git a/src/sugar/graphics/menuitem.py b/src/sugar/graphics/menuitem.py
index fc77ba0..954df1b 100644
--- a/src/sugar/graphics/menuitem.py
+++ b/src/sugar/graphics/menuitem.py
@@ -28,7 +28,8 @@ import gtk
from sugar.graphics.icon import Icon
class MenuItem(gtk.ImageMenuItem):
- def __init__(self, text_label=None, icon_name=None, text_maxlen=0):
+ def __init__(self, text_label=None, icon_name=None, text_maxlen=0,
+ xo_color=None):
gobject.GObject.__init__(self)
self._accelerator = None
@@ -43,6 +44,8 @@ class MenuItem(gtk.ImageMenuItem):
if icon_name:
icon = Icon(icon_name=icon_name, icon_size=gtk.ICON_SIZE_MENU)
+ if xo_color is not None:
+ icon.props.xo_color = xo_color
self.set_image(icon)
icon.show()
-----------------------------------------------------------------------
--
/home/olpc-code/git/sugar-toolkit
More information about the Commits
mailing list