diff options
author | Marco 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) |
commit | d6ec6db8809659e827a2d5f6387451084e99338c (patch) | |
tree | 012f022e2116955cbc66be6536d4a4821af006f7 /shell/ActivityHost.py | |
parent | 87cb115aa0155291d2473537a3fa2da1400c174f (diff) |
Make the console contextual to the activity and use the
window manager to activate it.
Diffstat (limited to 'shell/ActivityHost.py')
-rw-r--r-- | shell/ActivityHost.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/shell/ActivityHost.py b/shell/ActivityHost.py index c9d6dcb..fb17d77 100644 --- a/shell/ActivityHost.py +++ b/shell/ActivityHost.py @@ -14,6 +14,7 @@ class ActivityHost: self._activity = dbus.Interface(proxy_obj, 'com.redhat.Sugar.Activity') self._id = self._activity.get_id() + self._default_type = self._activity.get_default_type() self._window = gtk.gdk.window_foreign_new(xid) def get_id(self): @@ -25,6 +26,9 @@ class ActivityHost: def get_shared(self): return self._activity.get_shared() + def get_default_type(self): + return self._default_type + def show_dialog(self, dialog): dialog.show() dialog.window.set_transient_for(self._window) |