ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/CV/lib/Gtk2/CV.pm
Revision: 1.3
Committed: Mon Nov 3 16:44:19 2003 UTC (20 years, 8 months ago) by root
Branch: MAIN
Changes since 1.2: +3 -1 lines
Log Message:
*** empty log message ***

File Contents

# Content
1 package Gtk2::CV;
2
3 use XSLoader;
4
5 $VERSION = 0.1;
6
7 XSLoader::load "Gtk2::CV", $VERSION;
8
9 use Gtk2;
10
11 sub require_image {
12 my $path;
13
14 for (@INC) {
15 $path = "$_/Gtk2/CV/images/$_[0]";
16 last if -r $path;
17 }
18
19 eval { new_from_file Gtk2::Gdk::Pixbuf $path }
20 or die "can't find image $_[0] in \@INC";
21 }
22
23 1;
24