Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/jarabe/shellservice.py
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpgritti@gmail.com>2008-10-06 00:02:27 (GMT)
committer Marco Pesenti Gritti <mpgritti@gmail.com>2008-10-06 00:02:27 (GMT)
commita757c6040cbff1a48525b8c629a41fd9a73d1270 (patch)
tree89b850b39b1290024470cb64b1ddaf503450deb0 /src/jarabe/shellservice.py
parent7665848bb8766813a77372cbb24d70ebfcc573de (diff)
Remove the remaining shell view bits and finally kill it.
Diffstat (limited to 'src/jarabe/shellservice.py')
-rw-r--r--src/jarabe/shellservice.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/jarabe/shellservice.py b/src/jarabe/shellservice.py
index 3c9fbb4..71e2af6 100644
--- a/src/jarabe/shellservice.py
+++ b/src/jarabe/shellservice.py
@@ -15,10 +15,11 @@
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
"""D-bus service providing access to the shell's functionality"""
-import dbus
import os
-from jarabe.view import shell as shellview
+import dbus
+import gtk
+
from jarabe.model import shell
from jarabe.model import owner
@@ -51,7 +52,6 @@ class ShellService(dbus.service.Object):
_rainbow = None
def __init__(self):
- self._shell = shellview.get_instance()
self._shell_model = shell.get_model()
owner_model = owner.get_model()
@@ -69,9 +69,9 @@ class ShellService(dbus.service.Object):
@dbus.service.method(_DBUS_SHELL_IFACE,
in_signature="s", out_signature="b")
def ActivateActivity(self, activity_id):
- host = self._shell.get_activity(activity_id)
- if host:
- host.present()
+ activity = self._shell_model.get_activity_by_id(activity_id)
+ if activity:
+ activity.get_window().activate(gtk.get_current_event_time())
return True
return False