=head1 NAME EV::Glib - Embed the glib main loop into EV =head1 SYNOPSIS use Glib::EV; =head1 DESCRIPTION If you want to use EV in a glib/gtk+ program, then you need to look at the Glib::EV module, not this one, as this module requires you to run EV in your main program. If you want to use glib/gtk+ in an EV program, you are at the right place here. This module embed the glib main loop into EV, that is, EV will also handle Glib events. This makes Glib compatible to EV. Calls into the EV main loop are more or less equivalent to calls to Glib::MainLoop (but not vice versa, you I to use the EV loop functions). =over 4 =item * The Glib perl module is not used. This module has no dependency on the existing Glib perl interface, as it uses glib directly. The Glib module can, however, be used without any problems (as long as evereybody uses shared libraries to keep everybody else happy). =item * The default context will be added to EV when the module is loaded. Loading this module will automatically integrate the default context into EV, so normally nothing else is required. =cut package EV::Glib; use Carp (); use EV (); BEGIN { $VERSION = '0.1'; require XSLoader; XSLoader::load (EV::Glib, $VERSION); install (undef); } =back =cut =head1 BUGS * No documented API to use other main contexts. =head1 SEE ALSO L, L, L, L. =head1 AUTHOR Marc Lehmann http://home.schmorp.de/ =cut 1