diff options
-rwxr-xr-x | control-center | 34 |
1 files changed, 25 insertions, 9 deletions
diff --git a/control-center b/control-center index f41a84e5..4ecda054 100755 --- a/control-center +++ b/control-center @@ -58,6 +58,21 @@ if ("@ARGV" =~ /--theme (\w+)/) { $theme = $1 } -d "$mcc_dir/$theme" or $theme = 'default'; "@ARGV" =~ /--safe/ and $theme = 'default'; my_gtk::add_icon_path("$mcc_dir/$theme"); +my $window_splash = new Gtk::Window -popup; +$window_splash->signal_connect ( delete_event => \&quit_global ); +$window_splash->set_title( _("Mandrake Control Center")); #$_version)); +$window_splash->set_policy(1, 1, 1); +$window_splash->set_position(1); +$window_splash->add(gtkadd(gtkset_shadow_type(new Gtk::Frame(), 'etched_out'), + gtkpng("splash_screen") + ) + ); +$window_splash->show_all; +#$window_splash->realize; +Gtk->main_iteration while Gtk->events_pending; +my $timer_splash = Gtk->timeout_add(200, sub { Gtk->main_iteration while Gtk->events_pending }); + + my $rc = "$mcc_dir/$theme/gtkrc"; -r $rc and Gtk::Rc->parse($rc); @@ -188,20 +203,20 @@ my @tree = [_("Services") , 'service-mdk'], [_("Fonts"), 'drakfont-mdk'], [_("Date & Time") , 'time-mdk'], - [_("Add / Remove Software"), 'rpmdrake-mdk'], + [_("Software Manager"), 'rpmdrake-mdk'], [_("Logs"), 'logdrake-mdk'], [_("Console"), 'console-mdk'], [_("Users"), 'user-mdk'], ] ], if_($::isWiz, - [_("Server Configuration"), 'wizard-mdk', - [ - ( map { if_(/wizards_lib-(\w+)-\d+.*/ && member($1, keys %wizard), $wizard{$1}) } - split('\n', `rpm -qa | grep wizards_lib-`) - ) - ] - ]), + [_("Server Configuration"), 'wizard-mdk', + [ + ( map { if_(/wizards_lib-(\w+)-\d+.*/ && member($1, keys %wizard), $wizard{$1}) } + split('\n', `rpm -qa | grep wizards_lib-`) + ) + ] + ]), ); #------------------------------------------------------------- @@ -467,14 +482,15 @@ $window_global->window->move(-715, -515); Gtk->main_iteration while Gtk->events_pending; $emb_box->hide; my $p = $#tree + ($::isWiz ? 1 : 0); -print "nb page : $p \n"; foreach (0..$p) { $notebook_global->set_page($_); Gtk->main_iteration while Gtk->events_pending; } +Gtk->timeout_remove($timer_splash); $notebook_global->set_page(0); $window_global->set_default_size(715, 515); +$window_splash->destroy(); $window_global->set_position(1); $SIG{USR1} = \&sig_usr1; |