From c6d1d30e6bec3c43f617427e0029dcc8fb0b67fe Mon Sep 17 00:00:00 2001 From: damien Date: Fri, 24 Aug 2001 00:26:44 +0000 Subject: gtk_create_xpm handles no absolute xpm path --- perl-install/my_gtk.pm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'perl-install') diff --git a/perl-install/my_gtk.pm b/perl-install/my_gtk.pm index f45ebb8d4..9cf248d4e 100644 --- a/perl-install/my_gtk.pm +++ b/perl-install/my_gtk.pm @@ -340,6 +340,8 @@ sub gtkctree_children { sub gtkcreate_xpm { my ($w, $f) = @_; + $f =~ m|.xpm$| or $f="$f.xpm"; + if ( $f !~ /\//) { -e "$_/$f" and $f="$_/$f", last foreach $ENV{SHARE_PATH}, "$ENV{SHARE_PATH}/libDrakX/pixmaps", "pixmaps" } my @l = Gtk::Gdk::Pixmap->create_from_xpm($w->window, $w->style->bg('normal'), $f) or die "gtkcreate_xpm: missing pixmap file $f"; @l; } -- cgit v1.2.1