ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Glib-Event/README
Revision: 1.2
Committed: Sun Nov 27 19:23:43 2005 UTC (18 years, 6 months ago) by root
Branch: MAIN
CVS Tags: rel-0_1
Changes since 1.1: +41 -0 lines
Log Message:
*** empty log message ***

File Contents

# Content
1 NAME
2 Glib::Event - Coerce Glib into using the Event module as event loop.
3
4 SYNOPSIS
5 use Glib::Event;
6
7 # example with Gtk2:
8 use Gtk2;
9 use Glib::Event;
10 use Event; # any order
11 Event->timer (after => 1, interval => 1, cb => sub { print "I am here!\n" });
12 main Gtk2;
13 # etc., it just works
14
15 DESCRIPTION
16 This module coerces the Glib event loop to use the Event module as
17 underlying event loop, i.e. Event will be used by Glib for all events.
18
19 This makes Glib compatible to Event. Calls into the Glib main loop are
20 more or less equivalent to calls to "Event::loop".
21
22 * The Glib perl module is not used.
23 This module has no dependency on the existing Glib perl interface,
24 as it uses glib directly. The Glib module can, however, be used
25 without any problems.
26
27 * The default context will be changed when the module is loaded.
28 Loading this module will automatically "patch" the default context
29 of libglib, so normally nothing more is required.
30
31 BUGS
32 * No documented API to patch other main contexts.
33 * Uses one_event, which is inefficient.
34
35 SEE ALSO
36 Event, Glib, Glib::MainLoop.
37
38 AUTHOR
39 Marc Lehmann <schmorp@schmorp.de>
40 http://home.schmorp.de/
41