ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/CV/lib/Gtk2/CV.pm
Revision: 1.16
Committed: Wed Jul 20 22:33:01 2005 UTC (18 years, 11 months ago) by root
Branch: MAIN
Changes since 1.15: +1 -1 lines
Log Message:
*** empty log message ***

File Contents

# Content
1 package Gtk2::CV;
2
3 use XSLoader;
4
5 $VERSION = '0.5';
6
7 XSLoader::load "Gtk2::CV", $VERSION;
8
9 use Gtk2;
10 use Glib;
11
12 use IO::AIO;
13
14 add_watch Glib::IO IO::AIO::poll_fileno,
15 in => sub { IO::AIO::poll_cb; 1 };
16 IO::AIO::max_outstanding 128;
17
18 sub find_rcfile($) {
19 my $path;
20
21 for (@INC) {
22 $path = "$_/Gtk2/CV/$_[0]";
23 return $path if -r $path;
24 }
25
26 die "FATAL: can't find required file $_[0]\n";
27 }
28
29 sub require_image($) {
30 new_from_file Gtk2::Gdk::Pixbuf find_rcfile "images/$_[0]";
31 }
32
33 1;
34