summaryrefslogtreecommitdiffstats
path: root/perl-install/ugtk2.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-05-13 07:23:33 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-05-13 07:23:33 +0000
commitd08ca3afaba12ded477f93213d3a79bf5c57bc20 (patch)
treeb0be3313c297176abd8266585bb580ca18f2d3c2 /perl-install/ugtk2.pm
parentaff996326bb8276ad9237f1f3c8a9d0f1b7c09c5 (diff)
downloaddrakx-d08ca3afaba12ded477f93213d3a79bf5c57bc20.tar
drakx-d08ca3afaba12ded477f93213d3a79bf5c57bc20.tar.gz
drakx-d08ca3afaba12ded477f93213d3a79bf5c57bc20.tar.bz2
drakx-d08ca3afaba12ded477f93213d3a79bf5c57bc20.tar.xz
drakx-d08ca3afaba12ded477f93213d3a79bf5c57bc20.zip
better error logging when gtkcreate_img or gtkcreate_pixbuf can't find the image
Diffstat (limited to 'perl-install/ugtk2.pm')
-rw-r--r--perl-install/ugtk2.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/ugtk2.pm b/perl-install/ugtk2.pm
index 5bed679b1..6d5bb165f 100644
--- a/perl-install/ugtk2.pm
+++ b/perl-install/ugtk2.pm
@@ -600,12 +600,12 @@ sub _find_imgfile {
# use it if you want to display an icon/image in your app
sub gtkcreate_img {
- return Gtk2::Image->new_from_file(_find_imgfile(@_));
+ return Gtk2::Image->new_from_file(_find_imgfile(@_) || internal_error("can't find $_[0]"));
}
# use it if you want to draw an image onto a drawingarea
sub gtkcreate_pixbuf {
- return Gtk2::Gdk::Pixbuf->new_from_file(_find_imgfile(@_));
+ return Gtk2::Gdk::Pixbuf->new_from_file(_find_imgfile(@_) || internal_error("can't find $_[0]"));
}
sub gtktext_append { gtktext_insert(@_, append => 1) }