summaryrefslogtreecommitdiffstats
path: root/perl-install/my_gtk.pm
diff options
context:
space:
mode:
authordamien <damien@mandriva.com>2001-08-24 00:26:44 +0000
committerdamien <damien@mandriva.com>2001-08-24 00:26:44 +0000
commitc6d1d30e6bec3c43f617427e0029dcc8fb0b67fe (patch)
tree19cb10a9409732b48501a3e9a95b2b4516ce3666 /perl-install/my_gtk.pm
parentc08b927f2a3817da5fcf08cb969c8aa18b17618e (diff)
downloaddrakx-backup-do-not-use-c6d1d30e6bec3c43f617427e0029dcc8fb0b67fe.tar
drakx-backup-do-not-use-c6d1d30e6bec3c43f617427e0029dcc8fb0b67fe.tar.gz
drakx-backup-do-not-use-c6d1d30e6bec3c43f617427e0029dcc8fb0b67fe.tar.bz2
drakx-backup-do-not-use-c6d1d30e6bec3c43f617427e0029dcc8fb0b67fe.tar.xz
drakx-backup-do-not-use-c6d1d30e6bec3c43f617427e0029dcc8fb0b67fe.zip
gtk_create_xpm handles no absolute xpm path
Diffstat (limited to 'perl-install/my_gtk.pm')
-rw-r--r--perl-install/my_gtk.pm2
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;
}