diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2003-11-26 13:11:48 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2003-11-26 13:11:48 +0000 |
commit | a9d3ceafe12844e022fb835b45eb22494d2c92ed (patch) | |
tree | 43b540a1b2560a3f743e317db43dd822631e93ba | |
parent | 11192b58aa0053df80faebe224e3cf7f83d822cb (diff) | |
download | drakx-backup-do-not-use-a9d3ceafe12844e022fb835b45eb22494d2c92ed.tar drakx-backup-do-not-use-a9d3ceafe12844e022fb835b45eb22494d2c92ed.tar.gz drakx-backup-do-not-use-a9d3ceafe12844e022fb835b45eb22494d2c92ed.tar.bz2 drakx-backup-do-not-use-a9d3ceafe12844e022fb835b45eb22494d2c92ed.tar.xz drakx-backup-do-not-use-a9d3ceafe12844e022fb835b45eb22494d2c92ed.zip |
qiv has much more POWER than ourselves for setting up a persistent background
-rw-r--r-- | move/move.pm | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/move/move.pm b/move/move.pm index e2f10e2f7..086296891 100644 --- a/move/move.pm +++ b/move/move.pm @@ -460,20 +460,16 @@ sub install_TrueFS_in_home { } sub install2::displayBackground { - require ugtk2; - my $rootwindow = ugtk2::gtkroot(); - my $pixbuf = eval { Gtk2::Gdk::Pixbuf->new_from_file("/image/move/BOOT-$::rootwidth-MOVE.jpg") }; - $pixbuf ||= Gtk2::Gdk::Pixbuf->new_from_file('/usr/share/mdk/screensaver/3.png'); - my ($w, $h) = ($pixbuf->get_width, $pixbuf->get_height); - $rootwindow->draw_pixbuf(Gtk2::Gdk::GC->new($rootwindow), $pixbuf, 0, 0, ($::rootwidth - $w) / 2, ($::rootheight - $h)/2, $w, $h, 'none', 0, 0); - ugtk2::gtkflush(); + my $xdim = $::rootwidth; + $xdim < 800 and $xdim = 800; + $xdim > 1600 and $xdim = 1600; + system("qiv --root /image/move/BOOT-$xdim-MOVE.jpg"); } sub install2::startMove { my $o = $::o; $::WizardWindow->destroy if $::WizardWindow; - install2::displayBackground(); #- get info from existing fstab. This won't do anything if we already wrote fstab in configMove fs::get_info_from_fstab($o->{all_hds}, ''); |