summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-09-24 12:28:24 +0000
committerThierry Vignaud <tv@mandriva.org>2008-09-24 12:28:24 +0000
commit8e443d834d9eba154fe0b7e54d86a9670365ee56 (patch)
treee99d94a37b58f51b2a9544087b87c9e20de270f4
parent71716bbc192246d4f2f4dde3d6fa3df50722804c (diff)
downloadcontrol-center-8e443d834d9eba154fe0b7e54d86a9670365ee56.tar
control-center-8e443d834d9eba154fe0b7e54d86a9670365ee56.tar.gz
control-center-8e443d834d9eba154fe0b7e54d86a9670365ee56.tar.bz2
control-center-8e443d834d9eba154fe0b7e54d86a9670365ee56.tar.xz
control-center-8e443d834d9eba154fe0b7e54d86a9670365ee56.zip
switch from ugtk2 to mygtk2 to build splash window
-rwxr-xr-xcontrol-center8
1 files changed, 3 insertions, 5 deletions
diff --git a/control-center b/control-center
index 033e8661..3b3d13cd 100755
--- a/control-center
+++ b/control-center
@@ -93,8 +93,8 @@ $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'),
- gtkput(my $fixed = Gtk2::Fixed->new,
- gtkpack(Gtk2::VBox->new(0, 0),
+ gtknew('Fixed', has_window => 1,
+ child => gtkpack(Gtk2::VBox->new(0, 0),
if_(-r "$themes_dir/$theme/splash_screen.png", gtkcreate_img("splash_screen")),
gtkset_markup(Gtk2::Label->new, join('', qq(\n<span size="x-large" weight="heavy">),
N("Mandriva Linux Control Center"),
@@ -102,11 +102,9 @@ $window_splash->add(gtkadd(gtkset_shadow_type(Gtk2::Frame->new, 'etched_out'),
),
Gtk2::Label->new(N("Loading... Please wait") . "\n"),
),
- 0, 0),
+ x => 0, y => 0, realize => sub { ugtk2::set_back_pixmap($_[0]) }),
)
);
-$fixed->set_has_window(1);
-$fixed->signal_connect(realize => sub { ugtk2::set_back_pixmap($fixed) });
$window_splash->show_all;
gtkflush();