summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-09-24 12:49:47 +0000
committerThierry Vignaud <tv@mandriva.org>2008-09-24 12:49:47 +0000
commit33f825b844435400bf9c6a363c98fa2814deaa70 (patch)
treee5a9c0248796afbdb43148533bafd53ecb325a4f
parentebc33061ee40790761c51dc1c809f69f34868152 (diff)
downloadcontrol-center-33f825b844435400bf9c6a363c98fa2814deaa70.tar
control-center-33f825b844435400bf9c6a363c98fa2814deaa70.tar.gz
control-center-33f825b844435400bf9c6a363c98fa2814deaa70.tar.bz2
control-center-33f825b844435400bf9c6a363c98fa2814deaa70.tar.xz
control-center-33f825b844435400bf9c6a363c98fa2814deaa70.zip
new splash screen
-rw-r--r--NEWS1
-rwxr-xr-xcontrol-center18
-rw-r--r--pixmaps/default/splash_screen.pngbin31116 -> 73597 bytes
3 files changed, 7 insertions, 12 deletions
diff --git a/NEWS b/NEWS
index 98135217..8ddcad4b 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,5 @@
- fix about dialog banner (#44176)
+- new splash screen
Version 10.25.2 - 23 September 2008, Thierry Vignaud
diff --git a/control-center b/control-center
index 329cdf40..3de568bd 100755
--- a/control-center
+++ b/control-center
@@ -83,6 +83,7 @@ foreach (@ARGV) {
add_icon_path("$themes_dir/$theme/");
add_icon_path("$themes_dir/default") if $theme ne 'default'; # fall back if theme miss some icons
+mygtk2::import_style_ressources();
my $rc = find { -r $_ } ("$themes_dir/$theme/gtkrc", if_($theme ne 'default', "$themes_dir/default/gtkrc"));
Gtk2::Rc->parse($rc) if -r $rc;
@@ -92,19 +93,12 @@ my $window_splash = Gtk2::Window->new('popup');
$window_splash->signal_connect(delete_event => \&quit_global);
$window_splash->set_title(N("Mandriva Linux Control Center"));
$window_splash->set_position('center_always');
-
-$window_splash->add(gtkadd(gtkset_shadow_type(Gtk2::Frame->new, 'etched_out'),
- gtknew('Fixed', has_window => 1,
- child => gtknew('VBox', homogenous => 0, spacing => 0, children_loose => [
- if_(-r "$themes_dir/$theme/splash_screen.png", gtkcreate_img("splash_screen")),
- gtknew('Label', text_markup => join('', qq(\n<span size="x-large" weight="heavy">),
- N("Mandriva Linux Control Center"),
- "</span>"),
- ),
- gtknew('Label', text => N("Loading... Please wait") . "\n"),
+$window_splash->add(gtknew('Fixed', widget_name => 'Steps',
+ children => [
+ [ my $img = gtkcreate_img("splash_screen"), 0, 0 ],
+ [ gtknew('Label', text => N("Mandriva Linux Control Center")), 21, 60 ],
+ [ gtknew('Label', text => N("Loading... Please wait")), 21, 175 ],
]),
- x => 0, y => 0, realize => sub { ugtk2::set_back_pixmap($_[0]) }),
- )
);
$window_splash->show_all;
gtkflush();
diff --git a/pixmaps/default/splash_screen.png b/pixmaps/default/splash_screen.png
index a31a647f..da2622d1 100644
--- a/pixmaps/default/splash_screen.png
+++ b/pixmaps/default/splash_screen.png
Binary files differ