Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

gtk2::trayicon(3pm) [debian man page]

TrayIcon(3pm)						User Contributed Perl Documentation					     TrayIcon(3pm)

NAME
Gtk2::TrayIcon - Perl interface to the EggTrayIcon library SYNOPSIS
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; ABSTRACT
This module allows a Perl developer to embed an arbitrary widget in a System Tray like the Gnome notification area. DESCRIPTION
EggTrayIcon 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 KDE and Gnome. But neither support the spec fully (see below). "Gtk2::TrayIcon" is a subclass of "Gtk2::Plug" and should be used as such. METHODS
5 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 and KDE just ignores it. $trayicon->cancel_message($msgid) Ask the tray to cancel the message. SEE ALSO
Glib, Gtk2 and The System Tray Spec http://www.freedesktop.org/Standards/systemtray-spec. AUTHOR
Christian Borup <gtk2-perl at borup dot com> COPYRIGHT AND LICENSE
Copyright 2003 by the gtk2-perl team. 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 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307 USA. perl v5.14.2 2007-06-27 TrayIcon(3pm)

Check Out this Related Man Page

build::Keysyms(3)					User Contributed Perl Documentation					 build::Keysyms(3)

NAME
Gtk2::Gdk::Keysyms - key codes for Gtk2 programs SYNOPSIS
use Gtk2; use Gtk2::Gdk::Keysyms; # # the most common use is for deciphering keycodes in key events, # like this: # sub key_press_handler { my ($widget, $event) = @_; if ($event->keyval == $Gtk2::Gdk::Keysyms{Escape}) { abort_whatever (); return 1; } elsif ($event->keyval == $Gtk2::Gdk::Keysyms{F1}) { do_help_thing (); return 1; } elsif ($event->keyval == $Gtk2::Gdk::Keysyms{KP_Enter}) { execute_selected_text_as_command (); return 1; } # we didn't handle it, pass it on... return 0; } DESCRIPTION
Gdk defines symbolic names for the codes associated with each key on a keyboard, so that you don't go nuts with numeric values in your programs. The hash %Gtk2::Gdk::Keysyms holds all those keycodes, indexed by the name, for use in your perl programs when you need to do custom key handling. This commonly occurs when you want to bind an action to a key that isn't usable as an accelerator, or when you don't have accelerators, or if you're trying to write an easter egg, or whatever. As the list of keycodes is quite large and rather rarely used in application code, we've put it in a separately-loaded module to save space. As an alternative, you might want to investigate Gtk2::Gdk-keyval_from_name> which offers basically the same functionality as the hash. To get a list of all available keys, either dump %Gtk2::Gdk::Keysyms, or look at the source of this module with "perldoc -m Gtk2::Gdk::Keysyms". AUTHOR
This module was automatically generated by a very simple perl script from gdk/gdkkeysyms.h. Programs that write programs are the happiest programs of all. COPYRIGHT
Copyright (C) 2003 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307 USA. SEE ALSO
perl(1), Gtk2(3pm) perl v5.12.1 2010-07-05 build::Keysyms(3)
Man Page