From 5114b52232de84365f2a49c4c95016e1bf43eb6d Mon Sep 17 00:00:00 2001
From: Nikos Kouremenos <kourem@gmail.com>
Date: Mon, 29 Aug 2005 20:18:24 +0000
Subject: [PATCH] do screen size better

---
 src/gtkgui_helpers.py | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/gtkgui_helpers.py b/src/gtkgui_helpers.py
index 9448354275..25604d5ce6 100644
--- a/src/gtkgui_helpers.py
+++ b/src/gtkgui_helpers.py
@@ -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))
\ No newline at end of file
+	window.resize(abs(w), abs(h))
-- 
GitLab