diff options
author | Marco Pesenti Gritti <mpg@redhat.com> | 2006-04-27 18:58:10 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <mpg@redhat.com> | 2006-04-27 18:58:10 (GMT) |
commit | 38c5e5847bf22f0845cdd9ce3ba9ea2d588c7967 (patch) | |
tree | 2c26a812e4d2f2ef60386221cc344aa12606a1ff /shell | |
parent | af89be9a0c991a0e8ba91a1966345062bff984a4 (diff) |
Add some tab icons, still missing web site icons
Diffstat (limited to 'shell')
-rw-r--r-- | shell/src/activity.py | 8 | ||||
-rwxr-xr-x | shell/src/shell.py | 3 |
2 files changed, 8 insertions, 3 deletions
diff --git a/shell/src/activity.py b/shell/src/activity.py index 6c66a37..6f1f3fc 100644 --- a/shell/src/activity.py +++ b/shell/src/activity.py @@ -105,6 +105,14 @@ class Activity(dbus.service.Object): @dbus.service.method("com.redhat.Sugar.Activity", \ in_signature="", \ out_signature="") + + def activity_set_tab_icon_name(self, icon_name): + icon_theme = gtk.icon_theme_get_default() + icon_info = icon_theme.lookup_icon(icon_name, gtk.ICON_SIZE_MENU, 0) + pixbuf = icon_info.load_icon() + scaled_pixbuf = pixbuf.scale_simple(16, 16, gtk.gdk.INTERP_BILINEAR) + self.activity_set_icon(scaled_pixbuf) + def lost_focus(self): self.activity_on_lost_focus() diff --git a/shell/src/shell.py b/shell/src/shell.py index 880c9c8..5ce526e 100755 --- a/shell/src/shell.py +++ b/shell/src/shell.py @@ -300,6 +300,3 @@ def main(): gtk.main() except KeyboardInterrupt: pass - -if __name__=="__main__": - main() |