diff options
author | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-09-14 13:07:22 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-09-14 13:07:22 (GMT) |
commit | 3b41f1248a56fa06758c50c0ac48cca76a6b58bb (patch) | |
tree | 8ba2eb9649909c5c9f35cff0e47058bc251ada16 /shell | |
parent | d053a7f2191033922445ed5d2e566a0ac7a428be (diff) |
More layout fixes
Diffstat (limited to 'shell')
-rw-r--r-- | shell/BuddyPopup.py | 17 | ||||
-rw-r--r-- | shell/frame/Frame.py | 2 |
2 files changed, 10 insertions, 9 deletions
diff --git a/shell/BuddyPopup.py b/shell/BuddyPopup.py index bba9bbe..c31a6df 100644 --- a/shell/BuddyPopup.py +++ b/shell/BuddyPopup.py @@ -1,6 +1,7 @@ import gtk import goocanvas +from sugar.canvas.CanvasView import CanvasView from sugar.canvas.CanvasBox import CanvasBox from sugar.canvas.IconItem import IconItem @@ -12,10 +13,10 @@ class BuddyPopup(gtk.Window): self._friend = friend self._hover = False self._popdown_on_leave = False - self._width = 20 - self._height = 12 + self._width = 13 + self._height = 10 - canvas = goocanvas.CanvasView() + canvas = CanvasView() self.add(canvas) canvas.show() @@ -31,18 +32,18 @@ class BuddyPopup(gtk.Window): grid.set_constraints(rect, 0, 0, self._width, self._height) root.add_child(rect) - text = goocanvas.Text(text=friend.get_name(), font="Sans bold 14", - fill_color='black', anchor = gtk.ANCHOR_SW) - grid.set_constraints(text, 1, 2, self._width, self._height) + text = goocanvas.Text(text=friend.get_name(), font="Sans bold 18", + fill_color='black', anchor=gtk.ANCHOR_SW) + grid.set_constraints(text, 1, 3, self._width, self._height) root.add_child(text) separator = goocanvas.Path(data='M 15 0 L 185 0', line_width=3, fill_color='black') - grid.set_constraints(separator, 0, 3) + grid.set_constraints(separator, 0, 4) root.add_child(separator) box = CanvasBox(grid, CanvasBox.HORIZONTAL, 1) - grid.set_constraints(box, 0, 3) + grid.set_constraints(box, 0, 5) icon = IconItem(icon_name='stock-make-friend') icon.connect('clicked', self._make_friend_clicked_cb) diff --git a/shell/frame/Frame.py b/shell/frame/Frame.py index d463b18..1da50f0 100644 --- a/shell/frame/Frame.py +++ b/shell/frame/Frame.py @@ -17,7 +17,7 @@ class Frame: grid = Grid() - bg = goocanvas.Rect(fill_color="#4f4f4f") + bg = goocanvas.Rect(fill_color="#4f4f4f", line_width=0) grid.set_constraints(bg, 0, 0, 80, 60) root.add_child(bg) |