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:
@@ -241,8 +241,10 @@ class appGui(object):
|
|||||||
if width > -1 and height > -1:
|
if width > -1 and height > -1:
|
||||||
self.window.resize(int(width), int(height))
|
self.window.resize(int(width), int(height))
|
||||||
else:
|
else:
|
||||||
self.window.resize(gtk.gdk.screen_width() / 3,
|
width = int(gtk.gdk.screen_width() / 2)
|
||||||
gtk.gdk.screen_height() / 2)
|
if width > 530:
|
||||||
|
width = 530
|
||||||
|
self.window.resize(width, int(gtk.gdk.screen_height() / 1.7))
|
||||||
|
|
||||||
dic = { "refresh_clicked" : self.refresh_clicked,
|
dic = { "refresh_clicked" : self.refresh_clicked,
|
||||||
"quit_clicked" : self.exit,
|
"quit_clicked" : self.exit,
|
||||||
|
|||||||
@@ -254,8 +254,10 @@ class PreferencesDialog(object):
|
|||||||
if width > -1 and height > -1:
|
if width > -1 and height > -1:
|
||||||
self.dialog.resize(int(width), int(height))
|
self.dialog.resize(int(width), int(height))
|
||||||
else:
|
else:
|
||||||
self.dialog.resize(gtk.gdk.screen_width() / 3,
|
width = int(gtk.gdk.screen_width() / 2.4)
|
||||||
gtk.gdk.screen_height() / 2)
|
if width > 450:
|
||||||
|
width = 450
|
||||||
|
self.dialog.resize(width, int(gtk.gdk.screen_height() / 2))
|
||||||
|
|
||||||
self.wiredcheckbox = setup_label("pref_always_check",
|
self.wiredcheckbox = setup_label("pref_always_check",
|
||||||
'wired_always_on')
|
'wired_always_on')
|
||||||
|
|||||||
@@ -632,13 +632,13 @@ class WicdDaemon(dbus.service.Object):
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
if win_name == "main":
|
if win_name == "main":
|
||||||
default_width = 605
|
default_width = -1
|
||||||
default_height = 400
|
default_height = -1
|
||||||
width_str = "window_width"
|
width_str = "window_width"
|
||||||
height_str = "window_height"
|
height_str = "window_height"
|
||||||
else:
|
else:
|
||||||
default_width = 125
|
default_width = -1
|
||||||
default_height = 500
|
default_height = -1
|
||||||
width_str = "pref_width"
|
width_str = "pref_width"
|
||||||
height_str = "pref_height"
|
height_str = "pref_height"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user