Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/view/home
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpg@redhat.com>2007-01-19 14:47:33 (GMT)
committer Marco Pesenti Gritti <mpg@redhat.com>2007-01-19 14:47:33 (GMT)
commit5ca728b1d31139f059a3b3c94610db65d17e9c57 (patch)
tree7aed32fad54fb14d046a88b775b76e63d239bf8a /shell/view/home
parent3bedd451e3e1e60c92fe4d888fcd2f2f43f7f50b (diff)
Fix API for hippo-canvas 0.2
Diffstat (limited to 'shell/view/home')
-rw-r--r--shell/view/home/FriendsBox.py8
-rw-r--r--shell/view/home/HomeBox.py8
-rw-r--r--shell/view/home/activitiesdonut.py6
3 files changed, 11 insertions, 11 deletions
diff --git a/shell/view/home/FriendsBox.py b/shell/view/home/FriendsBox.py
index ec4aad6..a0c467c 100644
--- a/shell/view/home/FriendsBox.py
+++ b/shell/view/home/FriendsBox.py
@@ -58,9 +58,9 @@ class FriendsBox(SpreadBox, hippo.CanvasItem):
self.remove_item(self._friends[name])
del self._friends[name]
- def do_allocate(self, width, height):
- SpreadBox.do_allocate(self, width, height)
+ def do_allocate(self, width, height, origin_changed):
+ SpreadBox.do_allocate(self, width, height, origin_changed)
[icon_width, icon_height] = self._my_icon.get_allocation()
- self.move(self._my_icon, (width - icon_width) / 2,
- (height - icon_height) / 2)
+ self.set_position(self._my_icon, (width - icon_width) / 2,
+ (height - icon_height) / 2)
diff --git a/shell/view/home/HomeBox.py b/shell/view/home/HomeBox.py
index daef97d..cca0355 100644
--- a/shell/view/home/HomeBox.py
+++ b/shell/view/home/HomeBox.py
@@ -49,12 +49,12 @@ class HomeBox(hippo.CanvasBox, hippo.CanvasItem):
self._donut = None
self._my_icon.props.color = IconColor('insensitive')
- def do_allocate(self, width, height):
- hippo.CanvasBox.do_allocate(self, width, height)
+ def do_allocate(self, width, height, origin_changed):
+ hippo.CanvasBox.do_allocate(self, width, height, origin_changed)
[icon_width, icon_height] = self._my_icon.get_allocation()
- self.move(self._my_icon, (width - icon_width) / 2,
- (height - icon_height) / 2)
+ self.set_position(self._my_icon, (width - icon_width) / 2,
+ (height - icon_height) / 2)
def has_activities(self):
return self._donut.has_activities()
diff --git a/shell/view/home/activitiesdonut.py b/shell/view/home/activitiesdonut.py
index c9d8664..75d0b4d 100644
--- a/shell/view/home/activitiesdonut.py
+++ b/shell/view/home/activitiesdonut.py
@@ -221,8 +221,8 @@ class ActivitiesDonut(hippo.CanvasBox, hippo.CanvasItem):
cr.arc(0, 0, self._get_inner_radius(), 0, 2 * math.pi)
cr.fill()
- def do_allocate(self, width, height):
- hippo.CanvasBox.do_allocate(self, width, height)
+ def do_allocate(self, width, height, origin_changed):
+ hippo.CanvasBox.do_allocate(self, width, height, origin_changed)
radius = (self._get_inner_radius() + self._get_radius()) / 2
@@ -235,6 +235,6 @@ class ActivitiesDonut(hippo.CanvasBox, hippo.CanvasItem):
x = int(radius * math.cos(angle)) - icon_width / 2
y = int(radius * math.sin(angle)) - icon_height / 2
- self.move(icon, x + width / 2, y + height / 2)
+ self.set_position(icon, x + width / 2, y + height / 2)
i += 1