diff options
Diffstat (limited to 'src/jarabe/view/viewsource.py')
-rw-r--r-- | src/jarabe/view/viewsource.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/jarabe/view/viewsource.py b/src/jarabe/view/viewsource.py index afc7b1b..d5a6ddb 100644 --- a/src/jarabe/view/viewsource.py +++ b/src/jarabe/view/viewsource.py @@ -102,9 +102,8 @@ class ViewSource(gtk.Window): self.set_position(gtk.WIN_POS_CENTER_ALWAYS) self.set_border_width(style.LINE_WIDTH) - screen = Gdk.Screen.get_default() - width = screen.width - style.GRID_CELL_SIZE * 2 - height = screen.height - style.GRID_CELL_SIZE * 2 + width = gtk.gdk.screen_width() - style.GRID_CELL_SIZE * 2 + height = gtk.gdk.screen_height() - style.GRID_CELL_SIZE * 2 self.set_size_request(width, height) self._parent_window_xid = window_xid |