summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2002-09-04 16:12:21 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2002-09-04 16:12:21 +0000
commit2117d2eac241b6aa87a923f61ca109fc714f76a4 (patch)
tree098a8e16b1bea7b3a25f65e09008969595c347e6 /perl-install
parent79f2da57cdc751a4d9cd624dc4472343a0a87acd (diff)
downloaddrakx-backup-do-not-use-2117d2eac241b6aa87a923f61ca109fc714f76a4.tar
drakx-backup-do-not-use-2117d2eac241b6aa87a923f61ca109fc714f76a4.tar.gz
drakx-backup-do-not-use-2117d2eac241b6aa87a923f61ca109fc714f76a4.tar.bz2
drakx-backup-do-not-use-2117d2eac241b6aa87a923f61ca109fc714f76a4.tar.xz
drakx-backup-do-not-use-2117d2eac241b6aa87a923f61ca109fc714f76a4.zip
gtkcreate_png_pixbuf() : support jpeg too for bootlook.pm
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/ugtk.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/ugtk.pm b/perl-install/ugtk.pm
index 8f099e0c7..fa7ffa66a 100644
--- a/perl-install/ugtk.pm
+++ b/perl-install/ugtk.pm
@@ -752,7 +752,7 @@ sub gtkcreate_xpm {
sub gtkcreate_png_pixbuf {
my ($f) = shift;
die 'gdk-pixbuf library is not available' unless ($use_pixbuf);
- $f =~ /\.png$/ or $f .= '.png';
+ $f =~ /\.(png|jpg)$/ or $f .= '.png';
if ($f !~ /^\//) { -e "$_/$f" and $f = "$_/$f", last foreach icon_paths() }
Gtk::Gdk::Pixbuf->new_from_file($f) or die "gtkcreate_png: missing png file $f";
}