diff options
author | Aleksey Lim <alsroot@member.fsf.org> | 2009-01-04 10:47:30 (GMT) |
---|---|---|
committer | Aleksey Lim <alsroot@member.fsf.org> | 2009-01-04 10:47:30 (GMT) |
commit | 38a31f06849ac8543816bb58ca3a00d6e2c79019 (patch) | |
tree | 7681728ba99258351fdf5767418fad3462f3a5a6 /gui/canvaslistbox.py | |
parent | 72c1ff45c4ba0517c15d1444d638ad06a4d2f84c (diff) |
adapt to non-XO screen resolution
Diffstat (limited to 'gui/canvaslistbox.py')
-rw-r--r-- | gui/canvaslistbox.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/gui/canvaslistbox.py b/gui/canvaslistbox.py index 126e4f0..e53f7a6 100644 --- a/gui/canvaslistbox.py +++ b/gui/canvaslistbox.py @@ -29,7 +29,7 @@ from gui import page # TODO- height seems bust class CanvasListBox(hippo.CanvasWidget): - def __init__(self, width = 0, height = 0): + def __init__(self): self._entries_div = hippo.CanvasBox() # props not set properly in constructor @@ -50,8 +50,6 @@ class CanvasListBox(hippo.CanvasWidget): scroller = gtk.ScrolledWindow() scroller.set_policy(gtk.POLICY_NEVER, gtk.POLICY_AUTOMATIC) - if width > 0 or height > 0: - scroller.set_size_request(width, height) # TODO -> Size according to _entries_div w/ a max_entries or somesuch ? viewport = gtk.Viewport() viewport.set_shadow_type(gtk.SHADOW_NONE) viewport.add(hbox) @@ -67,6 +65,6 @@ class CanvasListBox(hippo.CanvasWidget): border_color=theme.COLOR_DARK_GREEN.get_int()) - def append(self, entry): - self._entries_div.append(entry) + def append(self, entry, *args): + self._entries_div.append(entry, *args) |