home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / lib / perl5 / Glib.pm < prev    next >
Encoding:
Perl POD Document  |  2008-11-04  |  20.9 KB  |  622 lines

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