From 27c30a2eb94ef02c386765302a389153a86a4909 Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Sun, 04 Feb 2007 15:50:18 +0000 Subject: Fix for link sharing. --- (limited to 'linksview.py') diff --git a/linksview.py b/linksview.py index a249355..fe0b02c 100755 --- a/linksview.py +++ b/linksview.py @@ -13,10 +13,12 @@ # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +import os import gtk import hippo +from sugar import env from sugar.graphics.menu import Menu from sugar.graphics.menushell import MenuShell from sugar.graphics.menuicon import MenuIcon @@ -26,8 +28,11 @@ from sugar.graphics import style class LinkIcon(MenuIcon): def __init__(self, menu_shell, link): color = IconColor(link.buddy.get_color()) + + path = os.path.join(env.get_bundle_path(), 'activity') + icon_name = os.path.join(path, 'activity-web.svg') MenuIcon.__init__(self, menu_shell, color=color, - icon_name='theme:activity-web') + icon_name=icon_name) self._link = link -- cgit v0.9.1