diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2002-09-04 16:12:21 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2002-09-04 16:12:21 +0000 |
commit | 2117d2eac241b6aa87a923f61ca109fc714f76a4 (patch) | |
tree | 098a8e16b1bea7b3a25f65e09008969595c347e6 /perl-install/ugtk.pm | |
parent | 79f2da57cdc751a4d9cd624dc4472343a0a87acd (diff) | |
download | drakx-2117d2eac241b6aa87a923f61ca109fc714f76a4.tar drakx-2117d2eac241b6aa87a923f61ca109fc714f76a4.tar.gz drakx-2117d2eac241b6aa87a923f61ca109fc714f76a4.tar.bz2 drakx-2117d2eac241b6aa87a923f61ca109fc714f76a4.tar.xz drakx-2117d2eac241b6aa87a923f61ca109fc714f76a4.zip |
gtkcreate_png_pixbuf() : support jpeg too for bootlook.pm
Diffstat (limited to 'perl-install/ugtk.pm')
-rw-r--r-- | perl-install/ugtk.pm | 2 |
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"; } |