ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/CV/lib/Gtk2/CV.pm
(Generate patch)

Comparing CV/lib/Gtk2/CV.pm (file contents):
Revision 1.8 by root, Sat Nov 8 13:34:37 2003 UTC vs.
Revision 1.13 by root, Mon Jul 11 02:14:10 2005 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines