Re: libgnome-perl example code broken?



Luis Villa wrote:

On Mon, 27 Nov 2000, Jake Hawkes wrote:
Luis Villa wrote:

marvin:~$ ./applet.pl
Can't locate object method "init" via package "Gnome::Panel::AppletWidget"
at ./applet.pl line 8.

I know you dont want to hear this, but "It works for me".

Heh. Well, a response is better than what I got out of my last email to
this list so I'm happy :)

Well then this will have you positively jumping for joy... :-)

Things to check, version of perl-gnome package. For me, it is in

usr/lib/perl5/site_perl/5.005/i386-linux

and more Gnome.pm, shows
$VERSION = '0.7003';

$VERSION is 0.7004, so no that isn't it (unless there is a version
specific problem.)

the other thing to make sure is that you are doing a

use Gnome;

at the begining. I dont think `use Gtk;' will cut it for you...


in fact, I just tried the applet.pl code with
use Gtk;

and I got the same error. My guess would be to use
use Gnome;

The applet.pl code (both in the Debian package and in the source) uses
Gnome and not Gtk. Adding a "use Gtk;" so that it calls both also doesn't
help at all. Of course, commenting out the "use Gnome;" line also gives
the same result, as does trying "require Gnome;" instead.

You seem to be very confused about what use and require does, but thats not whats
causing you problems...

Additional data points: the test.pl script in the source directory seems
to show that everything is installed correctly- all the other Gnome
samples run fine. So, it shouldn't be an installation problem. The OS is
Debian, last night's woody, so Paolo is to blame somehow :)

Anyway, thanks for the help, Jake- anyone else have any ideas as to what
might be wrong or how I can do more diagnostics? Thanks in advance-
Luis

For some reason the panel/applet code doesn't get installed by default. You should
run the following in the Gnome dir:

     perl Makefile.PL --with-panel
     make
     make install

The you should be able to run the applet sample without a hitch, at least I can.
Oh and shame on you for not reading the INSTALL.

./borup





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]