diff options
-rwxr-xr-x | control-center | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/control-center b/control-center index bd270836..50256343 100755 --- a/control-center +++ b/control-center @@ -1021,17 +1021,18 @@ if (scalar glob_("$more_wizard_dir/*.conf")) { my ($timeout, %check_boxes, $emb_socket); +# set default size: my $window_global = gtkset_size_request(Gtk2::Window->new('toplevel'), 620, 460); $::main_window = $window_global; if ($geometry) { - my ($w, $h) = $geometry =~ /(\d+)x(\d+)/; + @h{qw(HEIGTH WIDTH)} = $geometry =~ /(\d+)x(\d+)/; my ($x, $y) = $geometry =~ /([+-]\d+)([+-]\d+)/; - $window_global->resize(max($w, $default_width), max($default_heigth, $h)); $window_global->set_uposition($x, $y) if $x || $y; } else { - $window_global->resize(max($default_width, $h{WIDTH}), max($h{HEIGTH}, $default_heigth)); } +$window_global->resize(max($default_width, $h{WIDTH}), max($h{HEIGTH}, $default_heigth)); + $window_global->set_icon(gtkcreate_pixbuf("/usr/share/icons/drakconf.png")); my $pending_app = 0; |