gtk2-perl

About GNOME · Users · Developers · Bindings

Intro

gtk2-perl is the collective name for a set of perl bindings for Gtk+ 2.x and various related libraries. These modules make it easy to write Gtk and Gnome applications using a natural, perlish, object-oriented syntax.

Our documentation isn't what we'd like it to be, so don't code in a vacuum. For best results, discuss gtk2-perl with the authors on the gtk-perl mailing list, or in #gtk-perl on irc.gnome.org. If you're interested in helping us write documentation (reference, tutorials, HowTo's), join the list and let us know.

Please report any bugs with gtk2-perl in one of the two bug trackers:

Feel free to discuss bugs/issues on the gtk-perl mailing list

News

Glib 1.300 (stable) available
Mon, 20 May 2013 by Brian Manning

Overview of changes in Glib 1.300 (stable): Stable release to coincide with the release of Perl 5.18.0; Since 1.28x (The previous stable release); Ensure timely destruction of initial wrapper of custom subclasses; Start changing module version numbers in all Perl modules in the distribution, not just lib/Glib.pm; (Bugzilla #690464); Make Glib::Object subclassing more robust; This should in particular fix issues revealed by the change to hash randomization introduced in perl 5.17.6; Correctly handle utf8-encoded strings in GPerlArgv. This should fix issues seen with utf8-encoded strings in @ARGV with, for example, Gtk2->init. View the source in the Gtk2-Perl git repo at http://git.gnome.org/browse/perl-Glib/tag/?id=rel-1-30-0 or download the source release at http://downloads.sourceforge.net/gtk2-perl/Glib-1.300.tar.gz

Glib::Object::Introspection 0.015 (unstable) available
Sat, 02 Mar 2013 by Brian Manning

Overview of changes in Glib::Object::Introspection 0.015: Add support for array arguments to Perl callbacks; Allow Perl code to return Glib::Error objects; Register error domains; Support conversion to raw structs from unregistered libraries. View the source in the Gtk2-Perl git repo at http://git.gnome.org/browse/perl-Glib-Object-Introspection/tag/?id=rel-0-01-5 or download the source release at http://downloads.sourceforge.net/gtk2-perl/Glib-Object-Introspection-0.015.tar.gz

Glib 1.291 (unstable) available
Sat, 02 Mar 2013 by Brian Manning

Overview of changes in Glib 1.291 (unstable): Ensure timely destruction of initial wrapper of custom subclasses; Start changing module version numbers in all Glib Perl modules (Bugzilla #690464). View the source in the Gtk2-Perl git repo at http://git.gnome.org/browse/perl-Glib/tag/?id=rel-1-29-1 or download the source release at http://downloads.sourceforge.net/gtk2-perl/Glib-1.291.tar.gz

Pango 1.224 available
Tue, 19 Feb 2013 by Brian Manning

Overview of changes in Pango 1.224: Ignore MYMETA.*; Hush a few compiler warnings; Add gitweb link to old ChangeLog; Created %meta_merge which follows v2 of CPAN Meta Spec. View the git repo at: http://git.gnome.org/browse/perl-Pango/tag/?id=rel-1-22-4 or download source at: http://downloads.sourceforge.net/gtk2-perl/Pango-1.224.tar.gz

Gtk2 1.247 available
Tue, 19 Feb 2013 by Brian Manning

Overview of changes in Gtk2 1.247: Require Glib 1.280 for the fixes to custom signal marshalling; Fix a test failure in t/GtkRecentChooser.t; Created %meta_merge which follows v2 of CPAN Meta Spec. View the source in the Gtk2-Perl git repo at: http://git.gnome.org/browse/perl-Gtk2/tag/?id=rel-1-24-7 or download the source release at: http://downloads.sourceforge.net/gtk2-perl/Gtk2-1.247.tar.gz

All news items

(the above stories are the top headlines from the project's sourceforge rss feed. you can still see the old, hand-maintained news items if you are looking for something that's no longer here.)

Modules

Module NameDescription
ExtUtils::Depends (CPAN)Paolo Molaro's excellent utility from the original gtk-perl project
ExtUtils::PkgConfig (CPAN)A super-simplistic front-end to pkg-config for Makefile.PLs
Glibwrappers for glib 2.x, including GObject, and a PkgConfig utility
Gtk2gtk+ 2.x (including Gdk, Pango, Cairo, and Atk), plus some tools to make wrapping GObject-based libraries eaiser
Gnome2::Canvaslibgnomecanvas 2.x and libart
Gnome2libgnome 2.x and libgnomeui 2.x
Gtk2::GladeXMLlibglade 2.x
Gnome2::GConfthe GConf configuration database
Gnome2::Printlibgnomeprint and libgnomeprintui 2.2
Gnome2::VFSthe Gnome Virtual File System
Gnome2::Vtethe Gnome Virtual Terminal Emulator
Gnome2::Wnckthe Window Navigator Construction Kit
Gnome2::Rsvgthe RSVG library
Gtk2::MozEmbedthe Mozilla embedding widget
Gtk2::SourceViewthe GtkSourceView widget
GStreamerthe GStreamer library