diff options
author | Dan Williams <dcbw@redhat.com> | 2006-04-26 20:55:10 (GMT) |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2006-04-26 20:55:10 (GMT) |
commit | 50183927d0ed88d7fad007c57778ad0b63e5d169 (patch) | |
tree | 23ff9d7f1266b76c18cb83f73faddac43e5f5535 /shell/src | |
parent | 68ebe0d9adff8ee2868851a2d96b8be1c6f7f1b6 (diff) |
Remove example-activity/activity.py and merge with src/activity.py
Diffstat (limited to 'shell/src')
-rw-r--r-- | shell/src/activity.py | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/shell/src/activity.py b/shell/src/activity.py index 8ff6835..6c66a37 100644 --- a/shell/src/activity.py +++ b/shell/src/activity.py @@ -74,6 +74,30 @@ class Activity(dbus.service.Object): @dbus.service.method("com.redhat.Sugar.Activity", \ in_signature="", \ out_signature="") + + def activity_show_icon(self, show_icon): + self.__activity_object.set_tab_show_icon(show_icon) + + @dbus.service.method("com.redhat.Sugar.Activity", \ + in_signature="", \ + out_signature="") + + def activity_set_icon(self, pixbuf): + pixarray = [] + pixstr = pixbuf.get_pixels(); + for c in pixstr: + pixarray.append(c) + self.__activity_object.set_tab_icon(pixarray, \ + pixbuf.get_colorspace(), \ + pixbuf.get_has_alpha(), \ + pixbuf.get_bits_per_sample(), \ + pixbuf.get_width(), \ + pixbuf.get_height(), \ + pixbuf.get_rowstride()) + + @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) |