diff options
author | Marco Pesenti Gritti <mpg@redhat.com> | 2006-06-13 18:49:01 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <mpg@redhat.com> | 2006-06-13 18:49:01 (GMT) |
commit | 9ebcd656595f64e93616b579b348a586749a834e (patch) | |
tree | 16d239f626ed363a8440b466672fcccd6ce1ee3f /sugar/shell/shell.py | |
parent | 2415fee0ed5cbd6a1092090f69e115a3cfb1d9ff (diff) |
Implement the share button on the presence window
Diffstat (limited to 'sugar/shell/shell.py')
-rwxr-xr-x | sugar/shell/shell.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sugar/shell/shell.py b/sugar/shell/shell.py index 72b3ad3..aaf1569 100755 --- a/sugar/shell/shell.py +++ b/sugar/shell/shell.py @@ -73,7 +73,10 @@ class ActivityHost(dbus.service.Object): def __close_button_clicked_error_cb(self, error): pass - + + def publish(self): + self.peer_service.publish() + def tab_close_button_clicked(self, button): self.peer_service.close_from_user(reply_handler = self.__close_button_clicked_reply_cb, \ error_handler = self.__close_button_clicked_error_cb) @@ -292,6 +295,8 @@ class ActivityContainer(dbus.service.Object): activity = ActivityHost(self, activity_name) self.activities.append((sender, activity)) + self.current_activity = activity + #self.__print_activities() return activity.get_host_activity_id() @@ -368,7 +373,7 @@ def main(): activity_container = ActivityContainer(service, session_bus) activity_container.show() - presence_window = PresenceWindow() + presence_window = PresenceWindow(activity_container) presence_window.show() console.set_parent_window(activity_container.window) |