| Description | A set of Perl bindings for Gtk+ 2.0 and various related libraries |

Gnome2::PanelApplet

Glib::Object
+----Glib::InitiallyUnowned
+----Gtk2::Object
+----Gtk2::Widget
+----Gtk2::Container
+----Gtk2::Bin
+----Gtk2::EventBox
+----Gnome2::PanelApplet

Glib::Object::_Unregistered::AtkImplementorIface Gtk2::Buildable

May croak with a Glib::Error in $@ on failure.
Depending on type, color or pixmap, or both, may be undef.
This method sets up menu entries for your applet and binds them to callbacks.
The XML for $xml needs to have the following format:
<popup name="button3">
<menuitem name="Properties Item"
verb="Properties"
_label="Properties ..."
pixtype="stock"
pixname="gtk-properties"/>
<menuitem name="Help Item"
verb="Help"
_label="Help"
pixtype="stock"
pixname="gtk-help"/>
<menuitem name="About Item"
verb="About"
_label="About ..."
pixtype="stock"
pixname="gnome-stock-about"/>
</popup>
The verbs specified in this description can be mapped to callbacks in the
$verb_list:
$verb_list = {
Properties => [\&properties_callback, 'data'],
Help => \&help_callback,
About => sub { about_callback(@_) },
};
As you can see, the usual ways of specifying callbacks can be used:
\&help_callback[\&properties_callback, 'data']sub { about_callback(@_) }If you use the first or last form, i.e. if you don't specify user data, the
callback will be passed $default_data.
The callbacks will be passed three arguments: the bonobo component they belong
to, the user data, and the verb they were installed for. Currently, the bonobo
component will always be undef, since we have no bonobo Perl bindings yet.



Gnome2::PanelApplet, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Container, Gtk2::Bin, Gtk2::EventBox

Copyright (C) 2003, 2007 by the gtk2-perl team.
This software is licensed under the LGPL. See Gnome2::PanelApplet for a full notice.