home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 November (DVD) / PCWELT_11_2006.ISO / casper / filesystem.squashfs / usr / lib / perl5 / Glib.pm < prev    next >
Encoding:
Perl POD Document  |  2006-06-19  |  20.9 KB  |  621 lines

  1. # Copyright (C) 2003-2006 by the gtk2-perl team (see the file AUTHORS for
  2. # the full list)
  3. # This library is free software; you can redistribute it and/or modify it under
  4. # the terms of the GNU Library General Public License as published by the Free
  5. # Software Foundation; either version 2.1 of the License, or (at your option)
  6. # any later version.
  7. # This library is distributed in the hope that it will be useful, but WITHOUT
  8. # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  9. # FOR A PARTICULAR PURPOSE.  See the GNU Library General Public License for
  10. # more details.
  11. # You should have received a copy of the GNU Library General Public License
  12. # along with this library; if not, write to the Free Software Foundation, Inc.,
  13. # 59 Temple Place - Suite 330, Boston, MA  02111-1307  USA.
  14. #
  15. # $Header: /cvsroot/gtk2-perl/gtk2-perl-xs/Glib/Glib.pm,v 1.101 2006/03/12 21:22:00 kaffeetisch Exp $
  16. #
  17.  
  18. package Glib;
  19.  
  20. use 5.008;
  21. use strict;
  22. use warnings;
  23. use Exporter;
  24. require DynaLoader;
  25. our @ISA = qw(DynaLoader Exporter);
  26.  
  27. use constant {
  28.     TRUE  => 1,
  29.     FALSE => !1, # can't use !TRUE at this point
  30.     G_PRIORITY_HIGH         => -100,
  31.     G_PRIORITY_DEFAULT      =>  0,
  32.     G_PRIORITY_HIGH_IDLE    =>  100,
  33.     G_PRIORITY_DEFAULT_IDLE =>  200,
  34.     G_PRIORITY_LOW            =>  300,
  35.     G_PARAM_READWRITE       => [qw/readable writable/],
  36. };
  37.  
  38. # export nothing by default.
  39. # export functions and constants by request.
  40. our %EXPORT_TAGS = (
  41.     constants => [qw/
  42.             TRUE
  43.             FALSE
  44.             G_PRIORITY_HIGH
  45.             G_PRIORITY_DEFAULT
  46.             G_PRIORITY_HIGH_IDLE
  47.             G_PRIORITY_DEFAULT_IDLE
  48.             G_PRIORITY_LOW
  49.             G_PARAM_READWRITE
  50.             /],
  51.     functions => [qw/
  52.             filename_to_unicode
  53.             filename_from_unicode
  54.             filename_to_uri
  55.             filename_from_uri
  56.             filename_display_name
  57.             filename_display_basename
  58.             /],
  59. );
  60. our @EXPORT_OK = map { @$_ } values %EXPORT_TAGS;
  61. $EXPORT_TAGS{all} = \@EXPORT_OK;
  62.  
  63. our $VERSION = '1.120';
  64.  
  65. sub dl_load_flags { $^O eq 'darwin' ? 0x00 : 0x01 }
  66.  
  67. bootstrap Glib $VERSION;
  68.  
  69. package Glib::Flags;
  70.  
  71. use overload
  72.    'bool' => \&bool,
  73.    '+'    => \&union,     '|'    => \&union,
  74.    '-'    => \&sub,
  75.    '>='   => \&ge,
  76.    '=='   => \&eq,        'eq'   => \&eq, # eq for is_deeply in Test::More
  77.    '*'    => \&intersect, '&'    => \&intersect,
  78.    '/'    => \&xor,       '^'    => \&xor,
  79.    '@{}'  => \&as_arrayref,
  80.    '""'   => sub { "[ @{$_[0]} ]" },
  81.    fallback => 1;
  82.  
  83. package Glib::Error;
  84.  
  85. use overload
  86.    '""' => sub { $_[0]->message.$_[0]->location },
  87.    fallback => 1;
  88.  
  89. sub location { $_[0]->{location} }
  90. sub message { $_[0]->{message} }
  91. sub domain { $_[0]->{domain} }
  92. sub value { $_[0]->{value} }
  93. sub code { $_[0]->{code} }
  94.  
  95. package Glib::Object::Property;
  96.  
  97. use Carp;
  98.  
  99. sub TIESCALAR
  100. {
  101. # in the array reference the elements are:
  102. #    [0] Glib::Object
  103. #    [1] property name
  104.  
  105.     bless [ $_[1], $_[2] ], $_[0];
  106. }
  107.  
  108. sub STORE { croak 'property '.$_[0][1].' is read-only'; }
  109.  
  110. sub FETCH { '[write-only]'; }
  111.  
  112. package Glib::Object::Property::Readable;
  113.  
  114. our @ISA = qw/Glib::Object::Property/;
  115.  
  116. sub FETCH { $_[0][0]->get_property ($_[0][1]); }
  117.  
  118. package Glib::Object::Property::Writable;
  119.  
  120. our @ISA = qw/Glib::Object::Property/;
  121.  
  122. sub STORE { $_[0][0]->set_property ($_[0][1], $_[1]); }
  123.  
  124. package Glib::Object::Property::ReadWrite;
  125.  
  126. our @ISA = qw/Glib::Object::Property/;
  127.  
  128. *FETCH = \&Glib::Object::Property::Readable::FETCH;
  129. *STORE = \&Glib::Object::Property::Writable::STORE;
  130.  
  131. package Glib::Object;
  132.  
  133. use Carp;
  134.  
  135. sub tie_properties
  136. {
  137.     my $self = shift;    # the object
  138.     my $all = shift;    # add all properties, up heirarchy
  139.  
  140.     my @props = $self->list_properties;
  141.     my $package = ref $self;
  142.     my $name;
  143.     foreach my $prop (@props)
  144.     {
  145.         # skip to next if it doesn't belong to this package and 
  146.         # they don't want everything tied
  147.         next if ($prop->{owner_type} ne $package and not $all);
  148.  
  149.         $name = $prop->{name};
  150.         $name =~ s/-/_/g;
  151.  
  152.         carp "overwriting existing non-tied hash key $name"
  153.             if (exists ($self->{$name}) 
  154.                 and not tied $self->{$name});
  155.  
  156.         if ($prop->{flags} >= ["readable", "writable"]) {
  157.                         tie $self->{$name}, 
  158.                                 'Glib::Object::Property::ReadWrite',
  159.                                 $self, $name;
  160.                 } elsif ($prop->{flags} >= "readable") {
  161.                         tie $self->{$name}, 
  162.                                 'Glib::Object::Property::Readable',
  163.                                 $self, $name;
  164.                 } elsif ($prop->{flags} >= "writable") {
  165.             tie $self->{$name}, 
  166.                 'Glib::Object::Property::Writable',
  167.                 $self, $name;
  168.                 } else {
  169.                         # if it's not readable and not writable what is it?
  170.         }
  171.     }
  172. }
  173.  
  174. package Glib::Object::_LazyLoader;
  175.  
  176. use strict;
  177. no strict qw(refs);
  178. use vars qw($AUTOLOAD);
  179. push @Carp::CARP_NOT, __PACKAGE__;
  180.  
  181. # These two overrides won't keep explicit calls to UNIVERSAL::(isa|can)
  182. # from breaking if called before anything is loaded, but those should
  183. # be quite rare.
  184.  
  185. sub isa {
  186.     # we really shouldn't get in here at all if $_[0] is undefined.
  187.     _load (ref($_[0]) || $_[0]);
  188.     $_[0]->SUPER::isa ($_[1]);
  189. }
  190.  
  191. sub can {
  192.     # we really shouldn't get in here at all if $_[0] is undefined.
  193.     _load (ref($_[0]) || $_[0]);
  194.     $_[0]->SUPER::can ($_[1]);
  195. }
  196.  
  197. sub AUTOLOAD {
  198.     (my $method = $AUTOLOAD) =~ s/^.*:://;
  199.     (my $lazy_class = $AUTOLOAD) =~ s/::[^:]*$//;
  200.     my $object_or_type = shift;
  201.  
  202.     _load ($lazy_class);
  203.  
  204.     die "Something is very broken, couldn't lazy load $lazy_class"
  205.         if $object_or_type->isa (__PACKAGE__);
  206.  
  207.     # try again
  208.     return $object_or_type->$method (@_);
  209. }
  210.  
  211. package Glib;
  212.  
  213. 1;
  214. __END__
  215.  
  216. =head1 NAME
  217.  
  218. Glib - Perl wrappers for the GLib utility and Object libraries
  219.  
  220. =head1 SYNOPSIS
  221.  
  222.   use Glib;
  223.  
  224. =head1 ABSTRACT
  225.  
  226. This module provides perl access to GLib and GLib's GObject libraries.
  227. GLib is a portability and utility library; GObject provides a generic
  228. type system with inheritance and a powerful signal system.  Together
  229. these libraries are used as the foundation for many of the libraries
  230. that make up the Gnome environment, and are used in many unrelated
  231. projects.
  232.  
  233. =head1 DESCRIPTION
  234.  
  235. This wrapper attempts to provide a perlish interface while remaining 
  236. as true as possible to the underlying C API, so that any reference
  237. materials you can find on using GLib may still apply to using the
  238. libraries from perl.  This module also provides facilities for creating
  239. wrappers for other GObject-based libraries.  The L<SEE ALSO> section
  240. contains pointers to all sorts of good information.
  241.  
  242. =head1 PERL VERSUS C
  243.  
  244. GLib provides to C programs many of the same facilities Perl offers
  245. natively.  Where GLib's functionality overlaps Perl's, Perl's is favored.
  246. Some concepts have been eliminated entirely, as Perl is a higher-level
  247. language than C.  In other instances we've had to add or change APIs to
  248. make sense in Perl.  Here's a quick run-down:
  249.  
  250. =head2 Perl Already Does That
  251.  
  252. The GLib types GList (a doubly-linked list), GSList (singly-linked list),
  253. GHashTable, GArray, etc have all been replaced by native Perl datatypes.  In
  254. fact, many functions which take GLists or arrays simply accept lists on the
  255. Perl stack.  For the most part, GIOChannels are no more functional than Perl
  256. file handles, so you won't see any GIOChannels.  GClosures are not visible at
  257. the Perl level, because Perl code references do the same thing.  Just about any
  258. function taking either a C function pointer or a GClosure will accept a code
  259. reference in Perl.  (In fact, you can probably get away with just a subroutine
  260. name in many spots, provided you aren't using strict subs.)
  261.  
  262. =head2 Don't Worry About That
  263.  
  264. Some concepts have been eliminated; you need never worry about
  265. reference-counting on GObjects or having to free GBoxed structures.  Perl is a
  266. garbage-collected language, and we've put a lot of work into making the
  267. bindings take care of memory for you in a way that feels natural to a Perl
  268. developer.  You won't see GValues in Perl (that's just a C structure with Perl
  269. scalar envy, anyway).
  270.  
  271. =head2 This Is Now That
  272.  
  273. Other GLib concepts have been converted to an analogous Perl concept.
  274.  
  275. The GType id will never be seen in Perl, as the package name serves that
  276. purpose.  Several packages corresponding to the GTypes of the fundamental types
  277. have been registered for you:
  278.  
  279.  G_TYPE_STRING     Glib::String
  280.  G_TYPE_INT        Glib::Int
  281.  G_TYPE_UINT       Glib::UInt
  282.  G_TYPE_DOUBLE     Glib::Double
  283.  G_TYPE_BOOLEAN    Glib::Boolean
  284.  
  285. The remaining fundamentals (char/uchar, short, float, etc) are also registered
  286. so that we can properly interact with properties of C objects, but perl really
  287. only uses ints, uints, and doubles.  Oh, and we created a GBoxed type for Perl
  288. scalars so you can use scalars where any boxed type would be allowed (e.g.
  289. GtkTreeModel columns):
  290.  
  291.  Glib::Scalar
  292.  
  293. Functions that can return false and set a GError in C raise an exception in
  294. Perl, using an exception object based on the GError for $@; see L<Glib::Error>.
  295. Trapping exceptions in signals is a sticky issue, so they get their own
  296. section; see L<EXCEPTIONS>.
  297.  
  298. Enumerations and flags are treated as strings and arrays of strings,
  299. respectively.  GLib provides a way to register nicknames for enumeration
  300. values, and the Perl bindings use these nicknames for the real values, so that
  301. we never have to deal with numbers in Perl. This can get a little cumbersome
  302. for bitfields, but it's very nice when you forget a flag value, as the bindings
  303. will tell you what values are accepted when you pass something invalid. Also,
  304. the bindings consider the - and _ characters to be equivalent, so that signal
  305. and property names can be properly stringified by the => operator.  For
  306. example, the following are equivalent:
  307.  
  308.   # property foo-matic of type FooType, using the
  309.   # value FOO_SOMETHING_COOL.  its nickname would be
  310.   # 'something-cool'.  you may use either the full
  311.   # name or the nickname when supplying values to perl.
  312.   $object->set ('foo-matic', 'FOO_SOMETHING_COOL');
  313.   $object->set ('foo_matic', 'something_cool');
  314.   $object->set (foo_matic => 'something-cool');
  315.  
  316. Beware that Perl will always return to you the nickname form, with the dash.
  317.  
  318. Flags have some additional magic abilities in the form of overloaded
  319. operators:
  320.  
  321.   + or |   union of two flagsets ("add")
  322.   -        difference of two flagsets ("sub", "remove")
  323.   * or &   intersection of two bitsets ("and")
  324.   / or ^   symmetric difference ("xor", you will rarely need this)
  325.   >=       contains-operator ("is the left set a superset of the right set?")
  326.   ==       equality
  327.  
  328. In addition, flags in boolean context indicate whether they are empty or
  329. not, which allows you to write common operations naturally:
  330.  
  331.   $widget->set_events ($widget->get_events - "motion_notify_mask");
  332.   $widget->set_events ($widget->get_events - ["motion_notify_mask",
  333.                                               "button_press_mask"]);
  334.  
  335.   # shift pressed (both work, it's a matter of taste)
  336.   if ($event->state >= "shift-mask") { ...
  337.   if ($event->state * "shift-mask") { ...
  338.  
  339.   # either shift OR control pressed?
  340.   if ($event->state * ["shift-mask", "control-mask"]) { ...
  341.  
  342.   # both shift AND control pressed?
  343.   if ($event->state >= ["shift-mask", "control-mask"]) { ...
  344.  
  345. In general, C<+> and C<-> work as expected to add or remove flags. To test
  346. whether I<any> bits are set in a mask, you use C<$mask * ...>, and to test
  347. whether I<all> bits are set in a mask, you use C<< $mask >= ... >>.
  348.  
  349. When dereferenced as an array C<@$flags> or C<< $flags->[...] >>, you can
  350. access the flag values directly as strings (but you are not allowed to
  351. modify the array), and when stringified C<"$flags"> a flags value will
  352. output a human-readable version of its contents.
  353.  
  354. =head2 It's All the Same
  355.  
  356. For the most part, the remaining bits of GLib are unchanged.  GMainLoop is now
  357. Glib::MainLoop, GObject is now Glib::Object, GBoxed is now Glib::Boxed, etc.
  358.  
  359. =head1 FILENAMES, URIS AND ENCODINGS
  360.  
  361. Perl knows two datatypes, unicode text and binary bytes. Filenames on
  362. a system that doesn't use a utf-8 locale are often stored in a local
  363. encoding ("binary bytes"). Gtk+ and descendants, however, internally
  364. work in unicode most of the time, so when feeding a filename into a
  365. GLib/Gtk+ function that expects a filename, you first need to convert it
  366. from the local encoding to unicode.
  367.  
  368. This involves some elaborate guessing, which perl currently avoids, but
  369. GLib and Gtk+ do. As an exception, some Gtk+ functions want a filename
  370. in local encoding, but the perl interface usually works around this by
  371. automatically converting it for you.
  372.  
  373. In short: Everything should be in unicode on the perl level.
  374.  
  375. The following functions expose the conversion algorithm that GLib uses.
  376.  
  377. These functions are only necessary when you want to use perl functions
  378. to manage filenames returned by a GLib/Gtk+ function, or when you feed
  379. filenames into GLib/Gtk+ functions that have their source outside your
  380. program (e.g. commandline arguments, readdir results etc.).
  381.  
  382. These functions are available as exports by request (see L</Exports>),
  383. and also support method invocation syntax for pathological consistency
  384. with the OO syntax of the rest of the bindings.
  385.  
  386. =over 4
  387.  
  388. =item $filename = filename_to_unicode $filename_in_local_encoding
  389.  
  390. =item $filename = Glib->filename_to_unicode ($filename_in_local_encoding)
  391.  
  392. Convert a perl string that supposedly contains a filename in local
  393. encoding into a filename represented as unicode, the same way that GLib
  394. does it internally.
  395.  
  396. Example:
  397.  
  398.    $gtkfilesel->set_filename (filename_to_unicode $ARGV[1]);
  399.  
  400. This function will croak() if the conversion cannot be made, e.g., because the
  401. utf-8 is invalid.
  402.  
  403. =item $filename_in_local_encoding = filename_from_unicode $filename
  404.  
  405. =item $filename_in_local_encoding = Glib->filename_from_unicode ($filename)
  406.  
  407. Converts a perl string containing a filename into a filename in the local
  408. encoding in the same way GLib does it.
  409.  
  410. Example:
  411.  
  412.    open MY, "<", filename_from_unicode $gtkfilesel->get_filename;
  413.  
  414. =back
  415.  
  416. Other functions for converting URIs are currently missing. Also, it might
  417. be useful to know that perl currently has no policy at all regarding
  418. filename issues, if your scalar happens to be in utf-8 internally it will
  419. use utf-8, if it happens to be stored as bytes, it will use it as-is.
  420.  
  421. When dealing with filenames that you need to display, there is a much easier
  422. way, as of Glib 1.120 and glib 2.6.0:
  423.  
  424. =over 4
  425.  
  426. =item $uft8_string = filename_display_name ($filename)
  427.  
  428. =item $uft8_string = filename_display_basename ($filename)
  429.  
  430. Given a I<$filename> in filename encoding, return the filename, or just
  431. the file's basename, in utf-8.  Unlike the other functions described above,
  432. this one is guaranteed to return valid utf-8, but the conversion is not
  433. necessarily reversible.  These functions are intended to be used for failsafe
  434. display of filenames, for example in gtk+ labels.
  435.  
  436. Since gtk+ 2.6, Glib 1.12
  437.  
  438. =back
  439.  
  440.  
  441. =head1 EXCEPTIONS
  442.  
  443. The C language doesn't support exceptions; GLib is a C library, and of course
  444. doesn't support exceptions either.  In Perl, we use die and eval to raise
  445. and trap exceptions as a rather common practice.  So, the bindings have to
  446. work a little black magic behind the scenes to keep GLib from exploding when
  447. the Perl program uses exceptions.  Unfortunately, a little of this magic
  448. has to leak out to where you can see it at the Perl level.
  449.  
  450. Signal and event handlers are run in an eval context; if an exception occurs
  451. in such a handler and you don't catch it, Perl will report that an error
  452. occurred, and then go on about its business like nothing happened.
  453.  
  454. You may register subroutines as exception handlers, to be called when such
  455. an exception is trapped.  Another function removes them for you.
  456.  
  457.   $tag = Glib->install_exception_handler (\&my_handler);
  458.   Glib->remove_exception_handler ($tag);
  459.  
  460. The exception handler will get a fresh copy of the $@ of the offending
  461. exception on the argument stack, and is expected to return non-zero if the
  462. handler is to remain installed.  If it returns false, the handler will be
  463. removed.
  464.  
  465.   sub my_handler {
  466.       if ($_[0] =~ m/ftang quisinart/) {
  467.            clean_up_after_ftang ();
  468.       }
  469.       1; # live to fight another day
  470.   }
  471.  
  472. You can register as many handlers as you like; they will all run
  473. independently.
  474.  
  475. An important thing to remember is that exceptions do not cross main loops.
  476. In fact, exceptions are completely distinct from main loops.  If you need
  477. to quit a main loop when an exception occurs, install a handler that quits
  478. the main loop, but also ask yourself if you are using exceptions for flow
  479. control or exception handling.
  480.  
  481. =head1 LOG MESSAGES
  482.  
  483. GLib's g_log function provides a flexible mechanism for reporting messages,
  484. and most GLib-based C libraries use this mechanism for warnings, assertions,
  485. critical messages, etc.  The Perl bindings offer a mechanism for routing
  486. these messages through Perl's native system, warn() and die().  Extensions
  487. should register the log domains they wrap for this to happen fluidly.
  488. [FIXME say more here]
  489.  
  490. =head1 64 BIT INTEGERS
  491.  
  492. Since perl's integer data type can only hold 32 bit values on all 32 bit
  493. machines and even on some 64 bit machines, Glib converts 64 bit integers to and
  494. from strings if necessary.  These strings can then be used to feed one of the
  495. various big integer modules.  Make sure you don't let your strings get into
  496. numerical context before passing them into a Glib function because in this
  497. case, perl will convert the number to scientific notation which at this point
  498. is not understood by Glib's converters.
  499.  
  500. Here is an overview of what big integer modules are available.  First of all,
  501. there's Math::BigInt.  It has everything you will ever need, but its pure-Perl
  502. implementation is also rather slow.  There are multiple ways around this,
  503. though.
  504.  
  505. =over
  506.  
  507. =item L<Math::BigInt::FastCalc>
  508.  
  509. L<Math::BigInt::FastCalc> can help avoid the glacial speed of vanilla
  510. L<Math::BigInt::Calc>.  Recent versions of L<Math::BigInt> will automatically
  511. use L<Math::BigInt::FastCalc> in place of L<Math::BigInt::Calc> when available.
  512. Other options include L<Math::BigInt::GMP> or L<Math::BigInt::Pari>, which
  513. however have much larger dependencies.
  514.  
  515. =item L<Math::BigInt::Lite>
  516.  
  517. Then there's L<Math::BigInt::Lite>, which uses native Perl integer operations
  518. as long as Perl integers have sufficient range, and upgrades itself to
  519. L<Math::BigInt> when Perl integers would overflow. This must be used in place
  520. of L<Math::BigInt>.
  521.  
  522. =item L<bigint> / L<bignum> / L<bigfloat>
  523.  
  524. Finally, there's the bigint/bignum/bigfloat pragmata, which automatically load
  525. the corresponding Math:: modules and which will autobox constants.
  526. bignum/bigint will automatically use L<Math::BigInt::Lite> if it's available.
  527.  
  528. =back
  529.  
  530. =head1 Exports
  531.  
  532. For the most part, gtk2-perl avoids exporting things.  Nothing is exported by
  533. default, but some functions and constants in Glib are available by request;
  534. you can also get all of them with the export tag "all".
  535.  
  536. =over
  537.  
  538. =item Tag: constants
  539.  
  540.   TRUE
  541.   FALSE
  542.   G_PRIORITY_HIGH
  543.   G_PRIORITY_DEFAULT
  544.   G_PRIORITY_HIGH_IDLE
  545.   G_PRIORITY_DEFAULT_IDLE
  546.   G_PRIORITY_LOW
  547.   G_PARAM_READWRITE
  548.  
  549. =item Tag: functions
  550.  
  551.   filename_from_unicode
  552.   filename_to_unicode
  553.   filename_from_uri
  554.   filename_to_uri
  555.   filename_display_basename
  556.   filename_display_name
  557.  
  558. =back
  559.  
  560. =head1 SEE ALSO
  561.  
  562. L<Glib::Object::Subclass> explains how to create your own gobject subclasses
  563. in Perl.
  564.  
  565. L<Glib::index> lists the automatically-generated API reference for the
  566. various packages in Glib.
  567.  
  568. This module is the basis for the Gtk2 module, so most of the references
  569. you'll be able to find about this one are tied to that one.  The perl
  570. interface aims to be very simply related to the C API, so see the C API
  571. reference documentation:
  572.  
  573.   GLib - http://developer.gnome.org/doc/API/2.0/glib/
  574.   GObject - http://developer.gnome.org/doc/API/2.0/gobject/
  575.  
  576. This module serves as the foundation for any module which needs to bind
  577. GLib-based C libraries to perl.
  578.  
  579.   Glib::devel - Binding developer's overview of Glib's internals
  580.   Glib::xsapi - internal API reference for GPerl
  581.   Glib::ParseXSDoc - extract API docs from xs sources.
  582.   Glib::GenPod - turn the output of Glib::ParseXSDoc into POD
  583.   Glib::MakeHelper - Makefile.PL utilities for Glib-based extensions
  584.  
  585.   Yet another document, available separately, ties it all together:
  586.     http://gtk2-perl.sourceforge.net/doc/binding_howto.pod.html
  587.  
  588. For gtk2-perl itself, see its website at
  589.  
  590.   gtk2-perl - http://gtk2-perl.sourceforge.net/
  591.  
  592. A mailing list exists for discussion of using gtk2-perl and related
  593. modules.  Archives and subscription information are available at
  594. http://lists.gnome.org/.
  595.  
  596.  
  597. =head1 AUTHORS
  598.  
  599. muppet, E<lt>scott at asofyet dot orgE<gt>, who borrowed heavily from the work
  600. of Goran Thyni, E<lt>gthyni at kirra dot netE<gt> and Guillaume Cottenceau
  601. E<lt>gc at mandrakesoft dot comE<gt> on the first gtk2-perl module, and from
  602. the sourcecode of the original gtk-perl and pygtk projects.  Marc Lehmann
  603. E<lt>pcg at goof dot comE<gt> did lots of great work on the magic of making
  604. Glib::Object wrapper and subclassing work like they should.  Ross McFarland
  605. <rwmcfa1 at neces dot com> wrote quite a bit of the documentation generation
  606. tools.  Torsten Schoenfeld <kaffeetisch at web dot de> contributed little
  607. patches and tests here and there.
  608.  
  609. =head1 COPYRIGHT AND LICENSE
  610.  
  611. Copyright 2003-2006 by muppet and the gtk2-perl team
  612.  
  613. This library is free software; you can redistribute it and/or modify
  614. it under the terms of the Lesser General Public License (LGPL).  For 
  615. more information, see http://www.fsf.org/licenses/lgpl.txt
  616.  
  617. =cut
  618.