1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-22 05:48:03 +01:00

Tweak default window sizes

This commit is contained in:
Dan O'Reilly
2009-01-15 01:21:54 -05:00
parent a214a15d24
commit 514facb4aa
3 changed files with 12 additions and 8 deletions

View File

@@ -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,

View File

@@ -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')

View File

@@ -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"