Automatically generated by Pod::Man 4.09 (Pod::Simple 3.35) Standard preamble: ========================================================================
NAMEGtk2::TrayIcon - Perl interface to the EggTrayIcon library
use Gtk2::TrayIcon; Gtk2->init; my $icon= Gtk2::TrayIcon->new("test"); my $label= Gtk2::Label->new("test"); $icon->add($label); $icon->show_all; Gtk2->main;
ABSTRACTThis module allows a Perl developer to embed an arbitrary widget in a System Tray like the Gnome notification area.
DESCRIPTIONEggTrayIcon is slated for inclusion in Gtk+ at some point, which is the reason the "Gtk2::TrayIcon" namespace. As all egg libs, EggTrayIcon is not considered api stable and its not installed as a shared object.
Enough about what it is not, "Gtk2::TrayIcon" is first and foremost a simple way of giving a Gtk2 script access to the system tray.
System Trays are found in both
"Gtk2::TrayIcon" is a subclass of "Gtk2::Plug" and should be used as such.
METHODS5 methods are available.
- $trayicon= Gtk2::TrayIcon->new_from_screen($screen, $name)
- This creates a widget already connected to the notification area of $screen. $screen should be a "Gtk::Gdk::Screen".
- $trayicon= Gtk2::TrayIcon->new($name)
- Like "new_from_screen" but uses the default screen of the active display.
- $msgid= $trayicon->send_message($timeout, $message)
Ask the tray to display $message for $timeout milliseconds.
If $timeout is 0, the message will not expire.
Note that it is up to the tray to decide what to do with the message both Gnome andKDEjust ignores it.
- Ask the tray to cancel the message.
SEE ALSOGlib, Gtk2 and The System Tray Spec www.freedesktop.org/Standards/systemtray-spec
AUTHORChristian Borup <gtk2-perl at borup dot com>
COPYRIGHT AND LICENSECopyright 2003 by the gtk2-perl team.
This library is free software; you can redistribute it and/or modify it under the terms of the
This library is distributed in the hope that it will be useful, but
You should have received a copy of the