Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar/activity
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2006-07-20 10:13:47 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2006-07-20 10:13:47 (GMT)
commitd6ec6db8809659e827a2d5f6387451084e99338c (patch)
tree012f022e2116955cbc66be6536d4a4821af006f7 /sugar/activity
parent87cb115aa0155291d2473537a3fa2da1400c174f (diff)
Make the console contextual to the activity and use the
window manager to activate it.
Diffstat (limited to 'sugar/activity')
-rw-r--r--sugar/activity/Activity.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/sugar/activity/Activity.py b/sugar/activity/Activity.py
index a7c5a6a..b7575e5 100644
--- a/sugar/activity/Activity.py
+++ b/sugar/activity/Activity.py
@@ -8,7 +8,6 @@ import gtk
import gobject
from sugar.LogWriter import LogWriter
-from sugar import keybindings
import sugar.util
ACTIVITY_SERVICE_NAME = "com.redhat.Sugar.Activity"
@@ -129,6 +128,12 @@ class ActivityDbusService(dbus.service.Object):
"""Get the activity identifier"""
return self._activity.get_id()
+
+ @dbus.service.method(ACTIVITY_SERVICE_NAME)
+ def get_default_type(self):
+ """Get the activity default type"""
+ return self._activity.get_default_type()
+
@dbus.service.method(ACTIVITY_SERVICE_NAME)
def get_shared(self):
"""Get the activity identifier"""
@@ -152,8 +157,6 @@ class Activity(gtk.Window):
self._activity_object = None
self._default_type = None
- keybindings.setup_global_keys(self)
-
self.connect('realize', self.__realize)
self.present()