Re: Writing a Perl GNOME Panel Applet

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 "";
init Gnome::Panel::Applet "";
init Gnome::Panel::AppletWidget "";
init Gnome::AppletWidget "";

They all say that I'm missing the module, but the Gtk-Perl package looks
like it has something:


Any ideas on what I'm doing wrong?


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]