Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/example-activity/example-activity.py
diff options
context:
space:
mode:
Diffstat (limited to 'shell/example-activity/example-activity.py')
-rwxr-xr-xshell/example-activity/example-activity.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/shell/example-activity/example-activity.py b/shell/example-activity/example-activity.py
index 3f0b97e..852f193 100755
--- a/shell/example-activity/example-activity.py
+++ b/shell/example-activity/example-activity.py
@@ -63,6 +63,13 @@ class Activity(dbus.service.Object):
def activity_get_gtk_plug(self):
return self.__plug
+ def activity_set_can_close(self, can_close):
+ self.__activity_object.set_can_close(can_close)
+
+ @dbus.service.method("com.redhat.Sugar.Activity", \
+ in_signature="", \
+ out_signature="")
+
def activity_set_tab_text(self, text):
self.__activity_object.set_tab_text(text)