Scale the home canvases to actual screen size

This commit is contained in:
Marco Pesenti Gritti 2006-08-25 14:08:39 +02:00
parent 6cd4db9a2d
commit 760651e3d7

View File

@ -43,8 +43,8 @@ class HomeWindow(gtk.Window):
def _setup_canvas(self, canvas):
canvas.set_bounds(0, 0, 1200, 900)
canvas.set_scale(float(800) / float(1200))
canvas.set_size_request(800, 600)
canvas.set_scale(float(gtk.gdk.screen_width()) / float(1200))
canvas.set_size_request(gtk.gdk.screen_width(), gtk.gdk.screen_height())
def __realize_cb(self, window):
self.window.set_type_hint(gtk.gdk.WINDOW_TYPE_HINT_DESKTOP)