diff options
author | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2007-02-04 15:50:18 (GMT) |
---|---|---|
committer | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2007-02-04 15:50:18 (GMT) |
commit | 27c30a2eb94ef02c386765302a389153a86a4909 (patch) | |
tree | f2776026344e2d4ac5711914624fb4b77eb674a6 | |
parent | 5a12f5520a6e90c3aaf929d841c69d509261b9c5 (diff) |
Fix for link sharing.
-rw-r--r-- | .gitignore | 13 | ||||
-rwxr-xr-x | linksview.py | 7 |
2 files changed, 19 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..808c1c9 --- /dev/null +++ b/.gitignore @@ -0,0 +1,13 @@ +autom4te.cache +Makefile +Makefile.in +aclocal.m4 +config.log +config.status +configure +install-sh +missing +py-compile +*.pyc +*.xo +*~ 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 |