do screen size better
This commit is contained in:
parent
a89af31025
commit
5114b52232
1 changed files with 3 additions and 4 deletions
|
@ -27,9 +27,8 @@ _ = i18n._
|
||||||
from common import gajim
|
from common import gajim
|
||||||
from common import helpers
|
from common import helpers
|
||||||
|
|
||||||
screen = gtk.gdk.Screen()
|
screen_w = gtk.gdk.screen_width()
|
||||||
screen_w, screen_h = screen.get_width(), screen.get_height()
|
screen_h = gtk.gdk.screen_height()
|
||||||
del screen
|
|
||||||
|
|
||||||
def get_default_font():
|
def get_default_font():
|
||||||
''' Get the desktop setting for application font
|
''' Get the desktop setting for application font
|
||||||
|
@ -180,4 +179,4 @@ def resize_window(window, w, h):
|
||||||
w = screen_w
|
w = screen_w
|
||||||
if h > screen_h:
|
if h > screen_h:
|
||||||
h = screen_h
|
h = screen_h
|
||||||
window.resize(abs(w), abs(h))
|
window.resize(abs(w), abs(h))
|
||||||
|
|
Loading…
Add table
Reference in a new issue