diff --git a/wicd/gui.py b/wicd/gui.py index 58aefc6..b1a3065 100644 --- a/wicd/gui.py +++ b/wicd/gui.py @@ -241,8 +241,10 @@ class appGui(object): if width > -1 and height > -1: self.window.resize(int(width), int(height)) else: - self.window.resize(gtk.gdk.screen_width() / 3, - gtk.gdk.screen_height() / 2) + width = int(gtk.gdk.screen_width() / 2) + if width > 530: + width = 530 + self.window.resize(width, int(gtk.gdk.screen_height() / 1.7)) dic = { "refresh_clicked" : self.refresh_clicked, "quit_clicked" : self.exit, diff --git a/wicd/prefs.py b/wicd/prefs.py index 717cdfa..29f5c12 100644 --- a/wicd/prefs.py +++ b/wicd/prefs.py @@ -254,8 +254,10 @@ class PreferencesDialog(object): if width > -1 and height > -1: self.dialog.resize(int(width), int(height)) else: - self.dialog.resize(gtk.gdk.screen_width() / 3, - gtk.gdk.screen_height() / 2) + width = int(gtk.gdk.screen_width() / 2.4) + if width > 450: + width = 450 + self.dialog.resize(width, int(gtk.gdk.screen_height() / 2)) self.wiredcheckbox = setup_label("pref_always_check", 'wired_always_on') diff --git a/wicd/wicd-daemon.py b/wicd/wicd-daemon.py index 223ed46..b12e0e4 100644 --- a/wicd/wicd-daemon.py +++ b/wicd/wicd-daemon.py @@ -632,13 +632,13 @@ class WicdDaemon(dbus.service.Object): """ if win_name == "main": - default_width = 605 - default_height = 400 + default_width = -1 + default_height = -1 width_str = "window_width" height_str = "window_height" else: - default_width = 125 - default_height = 500 + default_width = -1 + default_height = -1 width_str = "pref_width" height_str = "pref_height"