Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/view/frame
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpg@redhat.com>2007-08-26 12:16:09 (GMT)
committer Marco Pesenti Gritti <mpg@redhat.com>2007-08-26 12:16:09 (GMT)
commit98157bbccb3756a7c45bd29df9eae284d23a0290 (patch)
tree14954a4fcba3fe581850425913d3748eef7d4d85 /shell/view/frame
parentf44c340b3a3d38dac49d50a8fa3a55871a973670 (diff)
Make CanvasIcon use IconBuffer. Change the API to use
a separate property for icon_name and file_name.
Diffstat (limited to 'shell/view/frame')
-rw-r--r--shell/view/frame/ActivitiesBox.py6
-rw-r--r--shell/view/frame/zoombox.py8
2 files changed, 7 insertions, 7 deletions
diff --git a/shell/view/frame/ActivitiesBox.py b/shell/view/frame/ActivitiesBox.py
index 909a5f2..0e377af 100644
--- a/shell/view/frame/ActivitiesBox.py
+++ b/shell/view/frame/ActivitiesBox.py
@@ -28,9 +28,9 @@ from frameinvoker import FrameCanvasInvoker
class ActivityButton(IconButton):
def __init__(self, activity_info):
- IconButton.__init__(self, icon_name=activity_info.icon,
- stroke_color=style.COLOR_WHITE,
- fill_color=style.COLOR_TRANSPARENT)
+ IconButton.__init__(self, file_name=activity_info.icon,
+ stroke_color=style.COLOR_WHITE.get_svg(),
+ fill_color=style.COLOR_TRANSPARENT.get_svg())
palette = Palette(activity_info.name)
palette.props.invoker = FrameCanvasInvoker(self)
diff --git a/shell/view/frame/zoombox.py b/shell/view/frame/zoombox.py
index 5634f56..37bfcc0 100644
--- a/shell/view/frame/zoombox.py
+++ b/shell/view/frame/zoombox.py
@@ -30,7 +30,7 @@ class ZoomBox(hippo.CanvasBox):
self._shell = shell
- icon = IconButton(icon_name='theme:zoom-mesh')
+ icon = IconButton(icon_name='zoom-mesh')
icon.connect('activated',
self._level_clicked_cb,
ShellModel.ZOOM_MESH)
@@ -41,7 +41,7 @@ class ZoomBox(hippo.CanvasBox):
palette.set_group_id('frame')
icon.set_palette(palette)
- icon = IconButton(icon_name='theme:zoom-friends')
+ icon = IconButton(icon_name='zoom-friends')
icon.connect('activated',
self._level_clicked_cb,
ShellModel.ZOOM_FRIENDS)
@@ -52,7 +52,7 @@ class ZoomBox(hippo.CanvasBox):
palette.set_group_id('frame')
icon.set_palette(palette)
- icon = IconButton(icon_name='theme:zoom-home')
+ icon = IconButton(icon_name='zoom-home')
icon.connect('activated',
self._level_clicked_cb,
ShellModel.ZOOM_HOME)
@@ -63,7 +63,7 @@ class ZoomBox(hippo.CanvasBox):
palette.set_group_id('frame')
icon.set_palette(palette)
- icon = IconButton(icon_name='theme:zoom-activity')
+ icon = IconButton(icon_name='zoom-activity')
icon.connect('activated',
self._level_clicked_cb,
ShellModel.ZOOM_ACTIVITY)