From 10dc80c8becd522e4f8960c39329d3ff3c0f954a Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Tue, 21 Aug 2007 15:39:05 -0400 Subject: [PATCH] Add icons to the activity ring palette. Part of #2028 --- shell/view/home/activitiesdonut.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/shell/view/home/activitiesdonut.py b/shell/view/home/activitiesdonut.py index 306cdf54..cb9e4b2a 100644 --- a/shell/view/home/activitiesdonut.py +++ b/shell/view/home/activitiesdonut.py @@ -24,6 +24,7 @@ import gobject import gtk from sugar.graphics.canvasicon import CanvasIcon +from sugar.graphics.menuitem import MenuItem from sugar.graphics.palette import Palette from sugar.graphics import style from sugar.graphics import xocolor @@ -87,14 +88,14 @@ class ActivityIcon(CanvasIcon): palette.set_primary_text(self._activity.get_title()) - resume_menu_item = gtk.MenuItem(_('Resume')) + resume_menu_item = MenuItem(_('Resume'), 'zoom-activity') resume_menu_item.connect('activate', self._resume_activate_cb) palette.menu.append(resume_menu_item) resume_menu_item.show() # FIXME: kludge if self._activity.get_type() != "org.laptop.JournalActivity": - stop_menu_item = gtk.MenuItem(_('Stop')) + stop_menu_item = MenuItem(_('Stop'), 'activity-stop') stop_menu_item.connect('activate', self._stop_activate_cb) palette.menu.append(stop_menu_item) stop_menu_item.show()