diff options
-rwxr-xr-x | control-center | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/control-center b/control-center index 2904ce96..109c75db 100755 --- a/control-center +++ b/control-center @@ -46,6 +46,7 @@ my ($version, $conffile, $class_install) = ("9.2", "/etc/mcc.conf", "/etc/syscon require_root_capability(); # just to get root capabilities +my ($default_heigth, $default_width) = (523, 720); #------------------------------------------------------------- # read configuration, set themes, ... @@ -55,8 +56,8 @@ $h{THEME} ||= 'default'; $h{EMBEDDED} ||= bool2text(1); $h{LOGS} ||= bool2text($class{CLASS} eq 'expert' ? 1 : 0); $h{EXPERT_WIZARD} ||= 0; -$h{HEIGTH} ||= 523; -$h{WIDTH} ||= 720; +$h{HEIGTH} ||= $default_heigth; +$h{WIDTH} ||= $default_width; my %option_values; @option_values{qw(embedded_mode show_log wiz_expert)} = (text2bool($h{EMBEDDED}), text2bool($h{LOGS}), text2bool($h{EXPERT_WIZARD})); @@ -284,7 +285,8 @@ my @tree = my ($timeout, %check_boxes, $exp_frame, $emb_socket); -my $window_global = gtkset_size_request(Gtk2::Window->new('toplevel'), $h{WIDTH}, $h{HEIGTH}); +my $window_global = gtkset_size_request(Gtk2::Window->new('toplevel'), $default_width, $default_heigth); +$window_global->resize($h{WIDTH}, $h{HEIGTH}); $window_global->set_icon(gtkcreate_pixbuf("/usr/share/icons/drakconf.png")); my $pending_app = 0; |