diff options
author | Daouda Lo <daouda@mandriva.com> | 2003-08-20 16:28:20 +0000 |
---|---|---|
committer | Daouda Lo <daouda@mandriva.com> | 2003-08-20 16:28:20 +0000 |
commit | 7e47839977d6f01c115e21118df872870fb11545 (patch) | |
tree | c3376642e0c35b8af3ca58a6b906c2b7242b471e /userdrake | |
parent | 32c3d73f9f4f4e2319984d7ed0d9efad1c897959 (diff) | |
download | userdrake-7e47839977d6f01c115e21118df872870fb11545.tar userdrake-7e47839977d6f01c115e21118df872870fb11545.tar.gz userdrake-7e47839977d6f01c115e21118df872870fb11545.tar.bz2 userdrake-7e47839977d6f01c115e21118df872870fb11545.tar.xz userdrake-7e47839977d6f01c115e21118df872870fb11545.zip |
- splash screen
Diffstat (limited to 'userdrake')
-rwxr-xr-x | userdrake | 25 |
1 files changed, 21 insertions, 4 deletions
@@ -42,11 +42,26 @@ my $pixdir = '/usr/share/userdrake/pixmaps/'; my $in = interactive->vnew('su'); -my $wait = $in->wait_message(N("Please wait"), N("Loading User and Groups")); -gtkflush(); - my $us = {} ; $us->{VERSION} = '0.92'; + +my $window_splash = Gtk2::Window->new('popup'); +$window_splash->signal_connect(delete_event => \&quit_global); +$window_splash->set_title(N("Userdrake") . $us->{VERSION}); +$window_splash->set_position('center_always'); +$window_splash->add(gtkadd(gtkset_shadow_type(Gtk2::Frame->new, 'etched_out'), + gtkpack(Gtk2::VBox->new(0, 0), + gtkcreate_img("$pixdir/about.png"), + Gtk2::Label->new(N("Loading Users and Groups... Please wait")) + ) + ) + ); +$window_splash->show_all; +gtkflush(); + +#my $wait = $in->wait_message(N("Please wait"), N("Loading User and Groups")); +#gtkflush(); + my $error = 0; my $GetValue = -65533; my $stringsearch = ''; @@ -152,7 +167,9 @@ $fbut->signal_connect('clicked', sub { $stringsearch = $filter->get_text() ; Ref Refresh($sysfilter, $stringsearch); $nb->signal_connect('switch-page' => sub { NotebookSwitch() }); $us->{wnd}{rwindow}->show_all; -undef $wait; +#undef $wait; +$window_splash->destroy; +undef $window_splash; gtkset_mousecursor_normal(); Gtk2->main; ugtk2->exit; |