Announcement: Glib::Event module



Hi!

I am pleased to announce the (very alpha-ish) release of Glib::Event.

This module overwrites the poll function used by Glib by a function
compatible with the Event module.

The result is that you can now mix Glib/Gtk2 code with code designed
for the Event module, which I regard as *the* standard, (almost-)
full-featured event subsystem for perl.

The usage is very easy: just "use Glib::Event" and after that point,
the default main context of glib (used e.g. by Gtk2) will call into
event. I.e.:

    use Gtk2;
    use Glib::Event;
    use Event; # any order

    Event->timer (after => 1, interval => 1, cb => sub { print "I am here!\n" });
    new Gtk2::Window ...;

    main Gtk2;

This should just work.

The module should be on CPAN soon, or is available here:
http://data.plan9.de/Glib-Event-0.1.tar.gz

It's just a few hours old, I tested it with Gtk2::CV so far, and it seems
to work fine (it's not too long or complicated, either).

(The module does not even depend on the Glib perl module, and should work
with any program that uses libglib for event handling).

I hope this little module comes in useful.

-- 
                The choice of a
      -----==-     _GNU_
      ----==-- _       generation     Marc Lehmann
      ---==---(_)__  __ ____  __      pcg goof com
      --==---/ / _ \/ // /\ \/ /      http://schmorp.de/
      -=====/_/_//_/\_,_/ /_/\_\      XX11-RIPE



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]