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.6 by root, Fri Nov 7 04:41:18 2003 UTC vs.
Revision 1.15 by root, Mon Jul 11 03:49:38 2005 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines