ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/EV-Glib/Glib.pm
Revision: 1.1
Committed: Sat Dec 8 02:49:42 2007 UTC (16 years, 5 months ago) by root
Branch: MAIN
Log Message:
*** empty log message ***

File Contents

# User Rev Content
1 root 1.1 =head1 NAME
2    
3     EV::Glib - Embed the glib main loop into EV
4    
5     =head1 SYNOPSIS
6    
7     use Glib::EV;
8    
9     =head1 DESCRIPTION
10    
11     If you want to use EV in a glib/gtk+ program, then you need to look at
12     the Glib::EV module, not this one, as this module requires you to run EV
13     in your main program.
14    
15     If you want to use glib/gtk+ in an EV program, you are at the right place
16     here.
17    
18     This module embed the glib main loop into EV, that is, EV will also handle
19     Glib events.
20    
21     This makes Glib compatible to EV. Calls into the EV main loop are more
22     or less equivalent to calls to Glib::MainLoop (but not vice versa, you
23     I<have> to use the EV loop functions).
24    
25     =over 4
26    
27     =item * The Glib perl module is not used.
28    
29     This module has no dependency on the existing Glib perl interface, as it
30     uses glib directly. The Glib module can, however, be used without any
31     problems (as long as evereybody uses shared libraries to keep everybody
32     else happy).
33    
34     =item * The default context will be added to EV when the module is loaded.
35    
36     Loading this module will automatically integrate the default context into
37     EV, so normally nothing else is required.
38    
39     =cut
40    
41     package EV::Glib;
42    
43     use Carp ();
44     use EV ();
45    
46     BEGIN {
47     $VERSION = '0.1';
48    
49     require XSLoader;
50     XSLoader::load (EV::Glib, $VERSION);
51    
52     install (undef);
53     }
54    
55     =back
56    
57     =cut
58    
59     =head1 BUGS
60    
61     * No documented API to use other main contexts.
62    
63     =head1 SEE ALSO
64    
65     L<EV>, L<Glib::EV>, L<Glib>, L<Glib::MainLoop>.
66    
67     =head1 AUTHOR
68    
69     Marc Lehmann <schmorp@schmorp.de>
70     http://home.schmorp.de/
71    
72     =cut
73    
74     1
75