Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2008-06-07 12:03:05 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2008-06-07 12:03:05 (GMT)
commitf91746f68e327660c6ec2ebc51608fe4eda3f60f (patch)
tree068d921a200063585a086c1b5eb2ec744c33c991 /src
parent728918620802ffc288bb0486f1de2850e000a6b2 (diff)
Zoom in when starting the notification.
Diffstat (limited to 'src')
-rw-r--r--src/view/Shell.py1
-rw-r--r--src/view/home/HomeWindow.py8
-rw-r--r--src/view/home/launchbox.py8
3 files changed, 12 insertions, 5 deletions
diff --git a/src/view/Shell.py b/src/view/Shell.py
index 150392e..1095878 100644
--- a/src/view/Shell.py
+++ b/src/view/Shell.py
@@ -100,6 +100,7 @@ class Shell(gobject.GObject):
self._screen.toggle_showing_desktop(True)
self._home_window.set_zoom_level(shellmodel.ShellModel.ZOOM_ACTIVITY)
+ self._home_window.launch_box.zoom_in()
def __launch_failed_cb(self, home_model, home_activity):
if self._screen.get_showing_desktop():
diff --git a/src/view/home/HomeWindow.py b/src/view/home/HomeWindow.py
index 25d94ae..9151d46 100644
--- a/src/view/home/HomeWindow.py
+++ b/src/view/home/HomeWindow.py
@@ -67,7 +67,7 @@ class HomeWindow(gtk.Window):
self._friends_box = FriendsBox()
self._mesh_box = MeshBox()
self._transition_box = TransitionBox()
- self._launch_box = LaunchBox()
+ self.launch_box = LaunchBox()
self._activate_view()
self._canvas.set_root(self._home_box)
@@ -102,7 +102,7 @@ class HomeWindow(gtk.Window):
elif self._level == ShellModel.ZOOM_MESH:
self._mesh_box.suspend()
elif self._level == ShellModel.ZOOM_ACTIVITY:
- self._launch_box.suspend()
+ self.launch_box.suspend()
def _activate_view(self):
if self._level == ShellModel.ZOOM_HOME:
@@ -110,7 +110,7 @@ class HomeWindow(gtk.Window):
elif self._level == ShellModel.ZOOM_MESH:
self._mesh_box.resume()
elif self._level == ShellModel.ZOOM_ACTIVITY:
- self._launch_box.resume()
+ self.launch_box.resume()
def _visibility_notify_event_cb(self, window, event):
if event.state == gtk.gdk.VISIBILITY_FULLY_OBSCURED:
@@ -145,7 +145,7 @@ class HomeWindow(gtk.Window):
self._canvas.set_root(self._mesh_box)
self._mesh_box.focus_search_entry()
elif self._level == ShellModel.ZOOM_ACTIVITY:
- self._canvas.set_root(self._launch_box)
+ self._canvas.set_root(self.launch_box)
def get_home_box(self):
return self._home_box
diff --git a/src/view/home/launchbox.py b/src/view/home/launchbox.py
index f435375..a70cb61 100644
--- a/src/view/home/launchbox.py
+++ b/src/view/home/launchbox.py
@@ -16,6 +16,7 @@
import hippo
import gobject
+import logging
from sugar.graphics import style
from sugar.graphics import animator
@@ -31,11 +32,16 @@ class LaunchBox(hippo.CanvasBox):
self._activity_icon = CanvasPulsingIcon()
+ # FIXME support non-xo colors in CanvasPulsingIcon
+ self._activity_icon.props.base_color = \
+ XoColor('%s,%s' % (style.COLOR_BUTTON_GREY.get_svg(),
+ style.COLOR_TRANSPARENT.get_svg()))
+
vbox = hippo.CanvasBox(orientation=hippo.ORIENTATION_VERTICAL)
vbox.append(self._activity_icon, hippo.PACK_EXPAND)
self.append(vbox, hippo.PACK_EXPAND)
- self._animator = animator.Animator(0.3)
+ self._animator = animator.Animator(1.0)
self._home = shellmodel.get_instance().get_home()
self._home.connect('active-activity-changed',