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