Gtk2
view release on metacpan or search on metacpan
lib/Gtk2/api.pod view on Meta::CPAN
cases that are not detailed in the generated Perl API reference.
=over
=item Gtk2::ScrollBar vs. GtkScrollbar
These classes were incorrectly written with a capital C<B> in version 1.00
and below. They have been renamed in version 1.01 and the old way to
write them is deprecated, but supported.
=item Gtk2::ItemFactory::create_items
The n_entries parameter has been omitted and callback_data is accepted as the
first parameter. All parameters after that are considered to be entries.
=item Gtk2::List::insert_items
Position and items parameters flipped order so that an open ended parameter
list could be used. C<< $list->insert_items($position, $item1, $item2, ...) >>
(Note that GtkList and GtkListItem are deprecated and only included because
GtkCombo still makes use of them, they are subject to removal at any point so
you should not utilize them unless absolutely necessary.)
=item Gtk2::Notebook::append_page
=item Gtk2::Notebook::prepend_page
=item Gtk2::Notebook::insert_page
The C API for these functions requires a GtkWidget for the tab_label, since you
can set any widget you like to be the tab label. However, the most common use
is a plain Gtk2::Label; so these three functions will stringify anything passed
to tab_label that's not a GtkWidget and wrap a Gtk2::Label around it for you.
Note that the C<_menu> versions of these functions do I<not> do this.
=item Gtk2::AccelGroup::connect
=item Gtk2::AccelGroup::disconnect
Where a GClosure is wanted by the C stuff, a perl subroutine reference
suffices. However, because of this, there are a few subtle differences in
semantics. a GClosure may be connected to only one GtkAccelGroup; however, a
perl subroutine may be connected to many GtkAccelGroups (because at the binding
level, a new GClosure is created on each call to ->connect). Thus,
$accel_group->disconnect will disconnect the first group it finds to be
connected to the given perl subroutine. To disconnect all groups attached to a
subroutine, you can call disconnect with the same subroutine reference (or
name) until it stops returning true.
=item Gtk2::Clipboard::set_with_data
=item Gtk2::Clipboard::set_with_owner
In C, these functions take an array of GtkTargetEntries and the number of
elements in that array as the second and third parameters. In Perl, the
number of target entries is implied by the number of items on the stack,
and the target entries are supplied as a list at the end of the parameter
list:
$clipboard->set_with_data (\&get_func, \&clear_func, $user_data,
@target_entries);
$clipboard->set_with_owner (\&get_func, \&clear_func, $owner,
@target_entries);
=back
=head1 SEE ALSO
The canonical documentation is the C API reference at
http://developer.gnome.org/doc/API/gtk/ and
http://developer.gnome.org/doc/API/gdk/
Gtk2 includes a full suite of automatically-generated API reference POD for
the Perl API -- see L<Gtk2::index> for the starting point.
There should be a similar document for Glib --- link to it here when it exists.
=head1 AUTHOR
muppet E<lt>scott at asofyet dot orgE<gt>
=head1 COPYRIGHT
Copyright (C) 2003, 2009 by the gtk2-perl team (see the file AUTHORS for the
full list)
This library is free software; you can redistribute it and/or modify it under
the terms of the GNU Library General Public License as published by the Free
Software Foundation; either version 2.1 of the License, or (at your option) any
later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU Library General Public License for more
details.
You should have received a copy of the GNU Library General Public License along
with this library; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
=cut
( run in 3.985 seconds using v1.01-cache-2.11-cpan-2398b32b56e )