summaryrefslogtreecommitdiffstats
path: root/perl-install/ugtk.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/ugtk.pm')
-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";
}