This file is indexed.

/usr/lib/perl5/Gtk2/TrayIcon.pm is in libgtk2-trayicon-perl 0.06-1build3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
package Gtk2::TrayIcon;

use 5.008;
use strict;
use warnings;

use Gtk2;

require DynaLoader;

our @ISA = qw(DynaLoader);


our $VERSION = '0.06';

sub dl_load_flags { 0x01 }

bootstrap Gtk2::TrayIcon $VERSION;

# Preloaded methods go here.

1;
__END__

=head1 NAME

Gtk2::TrayIcon - Perl interface to the EggTrayIcon library

=head1 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;

=head1 ABSTRACT

This module allows a Perl developer to embed an arbitrary widget
in a System Tray like the Gnome notification area.

=head1 DESCRIPTION

EggTrayIcon is slated for inclusion in Gtk+ at some point, which is the
reason the C<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, C<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). 

C<Gtk2::TrayIcon> is a subclass of C<Gtk2::Plug> and should be used
as such.

=head1 METHODS

5 methods are available.

=over 4

=item $trayicon= Gtk2::TrayIcon->new_from_screen($screen, $name)

This creates a widget already connected to the notification area
of C<$screen>. C<$screen> should be a C<Gtk::Gdk::Screen>.

=item $trayicon= Gtk2::TrayIcon->new($name)

Like C<new_from_screen> but uses the default screen of the active
display.

=item $msgid= $trayicon->send_message($timeout, $message)

Ask the tray to display C<$message> for C<$timeout> milliseconds.
If C<$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.

=item $trayicon->cancel_message($msgid)

Ask the tray to cancel the message.

=back

=head1 SEE ALSO

L<Glib>, L<Gtk2> and The System Tray Spec http://www.freedesktop.org/Standards/systemtray-spec.

=head1 AUTHOR

Christian Borup E<lt>gtk2-perl at borup dot comE<gt>

=head1 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.

=cut