summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordamien <damien@mandriva.com>2002-03-05 17:38:54 +0000
committerdamien <damien@mandriva.com>2002-03-05 17:38:54 +0000
commit08d9903d12eb481cbd4f3067795c74decb62045d (patch)
treefeb517072c70fbdea9a6bfbfd2be632918413d6d
parent4b54910d78474f494cbc6935d5e9f086f1fe5972 (diff)
downloadcontrol-center-08d9903d12eb481cbd4f3067795c74decb62045d.tar
control-center-08d9903d12eb481cbd4f3067795c74decb62045d.tar.gz
control-center-08d9903d12eb481cbd4f3067795c74decb62045d.tar.bz2
control-center-08d9903d12eb481cbd4f3067795c74decb62045d.tar.xz
control-center-08d9903d12eb481cbd4f3067795c74decb62045d.zip
splash screen
-rwxr-xr-xcontrol-center34
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;