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 the gtk2-perl section of the Gnome.org bugzilla bug tracker (look for the "File a bug" link on the lower right hand corner of the Bugzilla page), or on the gtk-perl mailing list. Thanks!

News

Gtk2 1.222 available
Mon, 31 May 2010 by Brian Manning
Overview of changes in Gtk2 1.222: Make Gtk2::ListStore->remove()'s return value consistent on gtk+ 2.0; Fix some build and test failures. View the Gtk2-Perl Git repo at: http://git.gnome.org/cgit/perl-Gtk2/ or download the source at: http://downloads.sourceforge.net/gtk2-perl/Gtk2-1.222.tar.gz.
Glib 1.223 available
Mon, 31 May 2010 by Brian Manning
Overview of changes in Glib 1.223: Fix a few test failures. View the Glib Git repo at: http://git.gnome.org/cgit/perl-Glib or download the package as a tarball: http://downloads.sourceforge.net/gtk2-perl/Glib-1.223.tar.gz
Gnome2::Rsvg 0.11 available
Mon, 17 May 2010 by Brian Manning
Overview of changes in Gnome2::Rsvg 0.11; Wrap new API: rsvg_set_default_dpi_x_y, rsvg_handle_new_from_data, rsvg_handle_new_from_file, rsvg_handle_get_pixbuf_sub, rsvg_handle_get_dimensions, rsvg_handle_get_dimensions_sub, rsvg_handle_get_position_sub, rsvg_handle_has_sub, rsvg_handle_set_dpi_x_y; Allow undef for the id passed to Gnome2::Rsvg::Handle->render_cairo_sub; Add a boolean return value to Gnome2::Rsvg::Handle->render_cairo and render_cairo_sub if librsvg-2.0 >= 2.22; Fix a leak in Gnome2::Rsvg::Handle->get_pixbuf; Fix small documentation, build and test suite issues; Add an example for rendering to Cairo. View the perl-Cairo GIT repo at: http://git.gnome.org/cgit/perl-Gnome2-Rsvg/ or download the package as a tarball: http://downloads.sourceforge.net/gtk2-perl/Gnome2-Rsvg-0.11.tar.gz
Cairo 1.070 (unstable) available
Mon, 17 May 2010 by Brian Manning
Overview of changes in Cairo 1.070; Wrap 1.8 API: cairo_show_text_glyphs, cairo_scaled_font_text_to_glyphs and cairo_scaled_font_get_scale_matrix; cairo_surface_get_fallback_resolution and cairo_surface_has_show_text_glyphs; Make Cairo::Pattern->set_extend, get_extend, set_filter and get_filter
Gtk2 1.230 (unstable) available
Mon, 26 Apr 2010 by Brian Manning
A summary of changes and bugfixes can be found in the release announcement to the gtk2-perl mailing list: http://mail.gnome.org/archives/gtk-perl-list/2010-April/msg00120.html. View the Gtk2-Perl GIT repo at: http://git.gnome.org/cgit/perl-Gtk2/ or download the source at: http://downloads.sourceforge.net/gtk2-perl/Gtk2-1.230.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