More fixes
This commit is contained in:
parent
d2ca088057
commit
10f3c1bc92
@ -9,7 +9,7 @@ from sugar.presence import PresenceService
|
||||
|
||||
class RightPanel(GridGroup):
|
||||
def __init__(self, shell, friends):
|
||||
GridGroup.__init__(self, 1, 14)
|
||||
GridGroup.__init__(self, 1, 10)
|
||||
self._shell = shell
|
||||
self._friends = friends
|
||||
self._activity_ps = None
|
||||
|
@ -7,7 +7,7 @@ import sugar
|
||||
|
||||
class TopPanel(GridGroup):
|
||||
def __init__(self, shell):
|
||||
GridGroup.__init__(self)
|
||||
GridGroup.__init__(self, 16, 1)
|
||||
self._shell = shell
|
||||
|
||||
self.add_zoom_level(sugar.ZOOM_ACTIVITY, 'stock-zoom-activity', 1)
|
||||
|
@ -63,8 +63,8 @@ class GridLayout:
|
||||
def layout_screen(self, screen):
|
||||
for window in screen.get_windows():
|
||||
[x, y, width, height] = self._get_geometry(screen, window)
|
||||
window.move(x, y)
|
||||
window.resize(width, height)
|
||||
window.move(int(x), int(y))
|
||||
window.resize(int(width), int(height))
|
||||
|
||||
class GridGroup(goocanvas.Group):
|
||||
__gproperties__ = {
|
||||
|
Loading…
Reference in New Issue
Block a user