diff options
author | damien <damien@mandriva.com> | 2001-08-24 00:26:44 +0000 |
---|---|---|
committer | damien <damien@mandriva.com> | 2001-08-24 00:26:44 +0000 |
commit | c6d1d30e6bec3c43f617427e0029dcc8fb0b67fe (patch) | |
tree | 19cb10a9409732b48501a3e9a95b2b4516ce3666 /perl-install | |
parent | c08b927f2a3817da5fcf08cb969c8aa18b17618e (diff) | |
download | drakx-c6d1d30e6bec3c43f617427e0029dcc8fb0b67fe.tar drakx-c6d1d30e6bec3c43f617427e0029dcc8fb0b67fe.tar.gz drakx-c6d1d30e6bec3c43f617427e0029dcc8fb0b67fe.tar.bz2 drakx-c6d1d30e6bec3c43f617427e0029dcc8fb0b67fe.tar.xz drakx-c6d1d30e6bec3c43f617427e0029dcc8fb0b67fe.zip |
gtk_create_xpm handles no absolute xpm path
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/my_gtk.pm | 2 |
1 files changed, 2 insertions, 0 deletions
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; } |