diff options
author | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-07-19 11:38:24 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-07-19 11:38:24 (GMT) |
commit | ae00121fbffdb3434d79716a112bd5956b9e5e67 (patch) | |
tree | ba65fb39de00da7ae25c2f0e56a45877b9f371fe /shell/Shell.py | |
parent | 08a52809a6ae3c712d67a9b50f10821ab5225e48 (diff) |
Use matchbox to activate home and people page
Diffstat (limited to 'shell/Shell.py')
-rwxr-xr-x | shell/Shell.py | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/shell/Shell.py b/shell/Shell.py index 5998a95..b0e04d6 100755 --- a/shell/Shell.py +++ b/shell/Shell.py @@ -20,16 +20,12 @@ class ShellDbusService(dbus.service.Object): dbus.service.Object.__init__(self, bus_name, '/com/redhat/Sugar/Shell') self._shell = shell - def __toggle_people_idle(self): - self._shell.toggle_people() + def __show_people_idle(self): + self._shell.show_people() @dbus.service.method('com.redhat.Sugar.Shell') - def toggle_people(self): - gobject.idle_add(self.__toggle_people_idle) - - @dbus.service.method('com.redhat.Sugar.Shell') - def toggle_home(self): - self._shell.toggle_home() + def show_people(self): + gobject.idle_add(self.__show_people_idle) @dbus.service.method('com.redhat.Sugar.Shell') def toggle_console(self): @@ -68,9 +64,6 @@ class Shell: else: window.show() - def toggle_home(self): - self._toggle_window_visibility(self._home_window) - def get_activity_from_xid(self, xid): bus = dbus.SessionBus() service = Activity.ACTIVITY_SERVICE_NAME + "%s" % xid @@ -90,7 +83,7 @@ class Shell: else: return None - def toggle_people(self): + def show_people(self): activity = self.get_current_activity() if activity: |