Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore13
-rwxr-xr-xlinksview.py7
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