summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2003-12-19 17:19:44 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2003-12-19 17:19:44 +0000
commitd7b149b904e370de1392f817aafe9944d250fc24 (patch)
treef35c20b328c08d742b8c9ccb9af3e6c2f79726a4
parentf10665278c093d3f058a1d6cabd97edbd9e97ee7 (diff)
downloadcontrol-center-d7b149b904e370de1392f817aafe9944d250fc24.tar
control-center-d7b149b904e370de1392f817aafe9944d250fc24.tar.gz
control-center-d7b149b904e370de1392f817aafe9944d250fc24.tar.bz2
control-center-d7b149b904e370de1392f817aafe9944d250fc24.tar.xz
control-center-d7b149b904e370de1392f817aafe9944d250fc24.zip
enable to shrink back the mcc
-rwxr-xr-xcontrol-center8
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;