Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManuel QuiƱones <manuq@laptop.org>2012-06-28 13:21:12 (GMT)
committer Manuel QuiƱones <manuq@laptop.org>2012-06-28 13:21:12 (GMT)
commitd450621b3f9abcf317e9be2053f25cbe90210b45 (patch)
tree3a645643f1ce01fc380e6195b3c980758c5bd827
parent22e4ee2db336c8d8555c6ee50d2700a34c8ac39b (diff)
Refactor variable names: gwidth, gheight -> grid_width, grid_height
-rw-r--r--src/jarabe/desktop/favoriteslayout.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/jarabe/desktop/favoriteslayout.py b/src/jarabe/desktop/favoriteslayout.py
index 013cc77..0f63f95 100644
--- a/src/jarabe/desktop/favoriteslayout.py
+++ b/src/jarabe/desktop/favoriteslayout.py
@@ -89,10 +89,11 @@ class ViewLayout(Layout):
owner_icon.size_allocate(owner_icon_allocation)
# Determine grid coordinates and add to grid
- owner_gwidth, owner_gheight = self._get_child_grid_size(owner_icon)
+ owner_grid_width, owner_grid_height = \
+ self._get_child_grid_size(owner_icon)
x = int(x / float(_CELL_SIZE))
y = int(y / float(_CELL_SIZE))
- self._grid.add(owner_icon, owner_gwidth, owner_gheight,
+ self._grid.add(owner_icon, owner_grid_width, owner_grid_height,
x, y, locked=True)
if activity_icon is None:
@@ -108,12 +109,12 @@ class ViewLayout(Layout):
activity_icon.size_allocate(activity_icon_allocation)
# Determine grid coordinates and add to grid
- activity_gwidth, activity_gheight = \
+ activity_grid_width, activity_grid_height = \
self._get_child_grid_size(activity_icon)
x = int(x / float(_CELL_SIZE))
y = int(y / float(_CELL_SIZE))
- self._grid.add(activity_icon, activity_gwidth,
- activity_gheight, x, y, locked=True)
+ self._grid.add(activity_icon, activity_grid_width,
+ activity_grid_height, x, y, locked=True)
def allocate_children(self, allocation, children):
pass