Gtk2::TrayManager 0.05 review

Download
by rbytes.net on

Gtk2::TrayManager is a Perl bindings for EggTrayManager. SYNOPSIS use Gtk2 -init; use Gtk2::TrayManager;

License: Perl Artistic License
File size: 10K
Developer: Christian Borup
0 stars award from rbytes.net

Gtk2::TrayManager is a Perl bindings for EggTrayManager.

SYNOPSIS

use Gtk2 -init;
use Gtk2::TrayManager;

my $screen = Gtk2::Gdk::Screen->get_default;

if (Gtk2::TrayManager->check_running($screen)) {
print STDERR "A tray manager is already running, sorry!n";
exit 256;
}

my $tray = Gtk2::TrayManager->new;
$tray->manage_screen($screen);
$tray->set_orientation('vertical');

$tray->signal_connect('tray_icon_added', sub {
# $_[1] is a Gtk2::Socket
});

$tray->signal_connect('tray_icon_removed', sub {
# $_[1] is a Gtk2::Socket
});

The EggTrayManager library is used internally by GNOME to implement the server-side of the Notification Area (or system tray) protocol. Gtk2::TrayManager allows you to create notification area applications using Gtk2-Perl.

Requirements:
Perl

Gtk2::TrayManager 0.05 keywords