Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2006-04-25 17:13:23 (GMT)
committer Dan Williams <dcbw@redhat.com>2006-04-25 17:13:23 (GMT)
commited4fc948ca7f76bc30196b4686115f751edd660d (patch)
tree3d3c36d374a8bccd9fe512d7238dd72e0e0b5b4a /shell
parent897e0132afa27c534625bb204374c25651d22e57 (diff)
Make the on_button_close call asynchronous
Diffstat (limited to 'shell')
-rwxr-xr-xshell/src/shell.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/shell/src/shell.py b/shell/src/shell.py
index 24c7eef..869f987 100755
--- a/shell/src/shell.py
+++ b/shell/src/shell.py
@@ -74,9 +74,16 @@ class ActivityHost(dbus.service.Object):
notebook = self.activity_container.notebook
index = notebook.append_page(self.socket, hbox)
notebook.set_current_page(index)
+
+ def __close_button_clicked_reply_cb(self):
+ pass
+
+ def __close_button_clicked_error_cb(self, error):
+ pass
def tab_close_button_clicked(self, button):
- self.peer_service.close_from_user()
+ self.peer_service.close_from_user(reply_handler = self.__close_button_clicked_reply_cb, \
+ error_handler = self.__close_button_clicked_error_cb)
@dbus.service.method("com.redhat.Sugar.Shell.ActivityHost", \
in_signature="", \