Re: Writing a Perl GNOME Panel Applet
- From: Chas Owens <cowens intercall com>
- To: Tom Cross <tomc cloudnet com>
- Cc: Gtk Perl List <gtk-perl-list gnome org>
- Subject: Re: Writing a Perl GNOME Panel Applet
- Date: 01 Jul 2002 07:42:29 -0400
On Sat, 2002-06-29 at 19:26, Tom Cross wrote:
I'm trying to make a little panel applet using Ximian's Gtk-Perl
package. However I'm not sure if it includes support for Panel Applet's
or not. I can't get it to initialize. I've tried:
init Gnome::Applet "Menu.pl";
init Gnome::Panel::Applet "Menu.pl";
init Gnome::Panel::AppletWidget "Menu.pl";
init Gnome::AppletWidget "Menu.pl";
They all say that I'm missing the module, but the Gtk-Perl package looks
like it has something:
/usr/lib/perl5/site_perl/5.6.1/i386-linux/Gnome/Applet
/usr/lib/perl5/site_perl/5.6.1/i386-linux/Gnome/Applet.pm
/usr/lib/perl5/site_perl/5.6.1/i386-linux/Gnome/Applet/Install
/usr/lib/perl5/site_perl/5.6.1/i386-linux/Gnome/Applet/Install/Files.pm
/usr/lib/perl5/site_perl/5.6.1/i386-linux/Gnome/Applet/Install/GnomeAppletDefs.h
/usr/lib/perl5/site_perl/5.6.1/i386-linux/Gnome/Applet/Install/GnomeAppletTypemap
/usr/lib/perl5/site_perl/5.6.1/i386-linux/Gnome/Applet/Install/PerlGnomeAppletInt.h
/usr/lib/perl5/site_perl/5.6.1/i386-linux/Gnome/Applet/Install/pkg.typemap
/usr/lib/perl5/site_perl/5.6.1/i386-linux/Gnome/Applet/Types.pm
Any ideas on what I'm doing wrong?
Thanks!!
Red Hat and Ximian did a bad bad thing. They put the Gtk modules (along
with a host of other modules that shouldn't be there) in
/use/lib/perl5/5.6.0 instead of /use/lib/perl5/site_perl/5.6.0. When
you upgraded to Perl 5.6.1 the search path changed (excluding the
version specific directory of /use/lib/perl5/5.6.0). You have three
solutions (ranked in order of difficulty): download the source and
compile it yourself, run "perl -MCPAN -e 'install Gtk'", or just put
use lib /use/lib/perl5/site_perl/5.6.0;
use lib /use/lib/perl5/site_perl/5.6.0/i386-linux;
at the top of all of your scripts. I am currently doing numbers 1 and 3
(just in case).
--
Today is Boomtime the 36th day of Confusion in the YOLD 3168
You are what you see.
Missile Address: 33:48:3.521N 84:23:34.786W
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]