… | |
… | |
39 | =item * There will be no g_main_loop or gtk_main loop available. |
39 | =item * There will be no g_main_loop or gtk_main loop available. |
40 | |
40 | |
41 | The EV event loop is not the gtk+ main loop. That means that things like |
41 | The EV event loop is not the gtk+ main loop. That means that things like |
42 | C<gtk_main_quit> will not work at all. |
42 | C<gtk_main_quit> will not work at all. |
43 | |
43 | |
|
|
44 | =item * You cannot call any glib loop functions while its context is active. |
|
|
45 | |
|
|
46 | This module uses a prepare watcher at lowest priority to dispatch glib |
|
|
47 | events and activate the main context. The context will be deactivates in a |
|
|
48 | check watcher of highest priority. |
|
|
49 | |
|
|
50 | That means that glib events will be dispatched with lowest priority, and |
|
|
51 | that you cannot call any glib main functions (or functions calling it) on |
|
|
52 | the default mainloop in highest-priority watchers and in lowest-priority |
|
|
53 | prepare watchers. |
|
|
54 | |
44 | =cut |
55 | =cut |
45 | |
56 | |
46 | package EV::Glib; |
57 | package EV::Glib; |
47 | |
58 | |
48 | use Carp (); |
59 | use Carp (); |