Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorgan Collett <morgan.collett@collabora.co.uk>2007-06-11 11:29:25 (GMT)
committer Morgan Collett <morgan.collett@collabora.co.uk>2007-06-11 11:29:25 (GMT)
commit8599688f1b0306817064cadc38af53e75735e4b3 (patch)
tree4c4ac03929cf9fbcfed9da8afa57f0ac4a410608
parent01076ff22a8bcefa7155d9f67874e75d72a50bce (diff)
Code cleanup, improved icon
-rw-r--r--activity.py12
-rw-r--r--activity/activity-hellomesh.svg29
2 files changed, 17 insertions, 24 deletions
diff --git a/activity.py b/activity.py
index fb0eebe..25c8753 100644
--- a/activity.py
+++ b/activity.py
@@ -19,18 +19,11 @@
import dbus
import hippo
import gtk
-import pango
import logging
import telepathy
import telepathy.client
-from sugar import profile
from sugar.activity.activity import Activity, ActivityToolbox
-from sugar.graphics import font
-from sugar.graphics.canvasicon import CanvasIcon
-from sugar.graphics.roundbox import RoundBox
-from sugar.graphics.xocolor import XoColor
-from sugar.graphics.units import points_to_pixels as px
from sugar.presence import presenceservice
# will eventually be imported from telepathy.tubes or something
@@ -90,9 +83,6 @@ class HelloMeshActivity(Activity):
if self.get_shared():
# we've already joined
self._joined_cb()
- else:
- # we are creating the activity
- pass
def _shared_cb(self, activity):
logger.debug('My activity was shared')
@@ -100,7 +90,7 @@ class HelloMeshActivity(Activity):
self._setup()
for buddy in self._shared_activity.get_joined_buddies():
- pass # XXX
+ pass # Can do stuff with newly acquired buddies here
self._shared_activity.connect('buddy-joined', self._buddy_joined_cb)
self._shared_activity.connect('buddy-left', self._buddy_left_cb)
diff --git a/activity/activity-hellomesh.svg b/activity/activity-hellomesh.svg
index 45ba759..376ef02 100644
--- a/activity/activity-hellomesh.svg
+++ b/activity/activity-hellomesh.svg
@@ -1,16 +1,19 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Generator: Adobe Illustrator 12.0.1, SVG Export Plug-In . SVG Version: 6.00 Build 51448) -->
-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" [
- <!ENTITY ns_svg "http://www.w3.org/2000/svg">
- <!ENTITY ns_xlink "http://www.w3.org/1999/xlink">
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" [
+ <!ENTITY ns_svg "http://www.w3.org/2000/svg">
+ <!ENTITY ns_xlink "http://www.w3.org/1999/xlink">
<!ENTITY stroke_color "#020202">
<!ENTITY fill_color "#666666">
-]>
-<svg version="1.1" id="Icon" xmlns="&ns_svg;" xmlns:xlink="&ns_xlink;" width="48.92" height="43.846" viewBox="0 0 48.92 43.846"
- overflow="visible" enable-background="new 0 0 48.92 43.846" xml:space="preserve">
-<path id="Bubble" fill="&fill_color;" stroke="&stroke_color;" stroke-width="3.5" d="M6.348,41.615c0.682,1.151,6.027,0.059,8.246-1.464
- c2.102-1.432,3.207-2.596,4.336-2.596c1.133,0,12.54,0.92,20.935-5.715c7.225-5.707,9.772-13.788,4.52-21.438
- c-5.252-7.644-13.831-9.079-20.878-8.56C13.891,2.562,1.309,10.13,1.762,21.533c0.264,6.711,3.357,9.143,4.922,10.702
- c1.562,1.566,4.545,1.566,2.992,5.589C9.066,39.402,5.838,40.742,6.348,41.615z"/>
-</svg>
+]>
+<svg version="1.1" id="Icon" xmlns="&ns_svg;" xmlns:xlink="&ns_xlink;" width="48.92" height="43.846" viewBox="0 0 48.92 43.846"
+ overflow="visible" enable-background="new 0 0 48.92 43.846" xml:space="preserve">
+<path fill="&fill_color;" stroke="&stroke_color;" stroke-width="3.5" d="M 5,0 L 5,40"/>
+<path fill="&fill_color;" stroke="&stroke_color;" stroke-width="3.5" d="M 15,0 L 15,40"/>
+<path fill="&fill_color;" stroke="&stroke_color;" stroke-width="3.5" d="M 25,0 L 25,40"/>
+<path fill="&fill_color;" stroke="&stroke_color;" stroke-width="3.5" d="M 35,0 L 35,40"/>
+<path fill="&fill_color;" stroke="&stroke_color;" stroke-width="3.5" d="M 0,5 L 40,5"/>
+<path fill="&fill_color;" stroke="&stroke_color;" stroke-width="3.5" d="M 0,15 L 40,15"/>
+<path fill="&fill_color;" stroke="&stroke_color;" stroke-width="3.5" d="M 0,25 L 40,25"/>
+<path fill="&fill_color;" stroke="&stroke_color;" stroke-width="3.5" d="M 0,35 L 40,35"/>
+</svg>