… | |
… | |
2 | |
2 | |
3 | EV::Glib - Embed the glib main loop into EV |
3 | EV::Glib - Embed the glib main loop into EV |
4 | |
4 | |
5 | =head1 SYNOPSIS |
5 | =head1 SYNOPSIS |
6 | |
6 | |
7 | use Glib::EV; |
7 | use EV::Glib; |
8 | |
8 | |
9 | =head1 DESCRIPTION |
9 | =head1 DESCRIPTION |
10 | |
10 | |
11 | If you want to use EV in a Glib/Gtk+ program, then you need to look at |
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 |
12 | the Glib::EV module, not this one, as this module requires you to run EV |
… | |
… | |
26 | |
26 | |
27 | =item * The Glib perl module is not used. |
27 | =item * The Glib perl module is not used. |
28 | |
28 | |
29 | This module has no dependency on the existing Glib perl interface, as it |
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 |
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 |
31 | problems (as long as everybody uses shared libraries to keep everybody |
32 | else happy). |
32 | else happy). |
33 | |
33 | |
34 | =item * The default context will be added to EV when the module is loaded. |
34 | =item * The default context will be added to EV when the module is loaded. |
35 | |
35 | |
36 | Loading this module will automatically integrate the default context into |
36 | Loading this module will automatically integrate the default context into |
… | |
… | |
43 | I<have> to use EV's equivalents, i.e. C<EV::unloop>. |
43 | I<have> to use EV's equivalents, i.e. C<EV::unloop>. |
44 | |
44 | |
45 | =item * You cannot call any glib loop functions while its context is active. |
45 | =item * You cannot call any glib loop functions while its context is active. |
46 | |
46 | |
47 | This module uses a prepare watcher at lowest priority to dispatch glib |
47 | This module uses a prepare watcher at lowest priority to dispatch glib |
48 | events and activate the main context. The context will be deactivates in a |
48 | events and activate the main context. The context will be deactivated in a |
49 | check watcher of highest priority. |
49 | check watcher of highest priority. |
50 | |
50 | |
51 | That means that glib events will be dispatched with lowest priority, and |
51 | That means that glib events will be dispatched with lowest priority, and |
52 | that you cannot call any glib main functions (or functions calling it) on |
52 | that you cannot call any glib main functions (or functions calling it) on |
53 | the default mainloop in highest-priority watchers and in lowest-priority |
53 | the default mainloop in highest-priority watchers and in lowest-priority |