do screen size better

This commit is contained in:
Nikos Kouremenos 2005-08-29 20:18:24 +00:00
parent a89af31025
commit 5114b52232
1 changed files with 3 additions and 4 deletions

View File

@ -27,9 +27,8 @@ _ = i18n._
from common import gajim
from common import helpers
screen = gtk.gdk.Screen()
screen_w, screen_h = screen.get_width(), screen.get_height()
del screen
screen_w = gtk.gdk.screen_width()
screen_h = gtk.gdk.screen_height()
def get_default_font():
''' Get the desktop setting for application font
@ -180,4 +179,4 @@ def resize_window(window, w, h):
w = screen_w
if h > screen_h:
h = screen_h
window.resize(abs(w), abs(h))
window.resize(abs(w), abs(h))