Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/example-activity
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpg@redhat.com>2006-04-21 19:53:26 (GMT)
committer Marco Pesenti Gritti <mpg@redhat.com>2006-04-21 19:53:26 (GMT)
commit79764c7d4f07326ea2bd74ec1c1dbdcb5f31720a (patch)
tree87b272b01c592dcbb52ea8c3bbdadfa811fd410f /shell/example-activity
parent0f202950a7e7eeda55075ccc23610be41e8834f4 (diff)
Add a method to show/hide close buttons on the tab
Diffstat (limited to 'shell/example-activity')
-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)