WebGadget doesn't work

Linux specific forum
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

WebGadget doesn't work

Post by Trond »

The WebGadget doesn't work. No gadget is created on the window, allthough the WebGadget() function returns some high number. WebGadgetPath() returns 1. I have tried to specify the path of libgtkembedmoz.so in the seamonkey directory and in the xulrunner directory, with and without the respecive directories as the second parameters.
For a sample code, see the manual.
freak
PureBasic Team
PureBasic Team
Posts: 5948
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

Did you correctly set the component path? (second argument of WebGadgetPath)
if this is incorrect, the gadget cannot render any data.
quidquid Latine dictum sit altum videtur
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

How do I know if it's "correctly" set? I tried to leave it blank and to set it to the directory where the libgtkblahblah.so file was. I did not move the .so file from where it was installed. (/usr/lib/seamonkey and /usr/lib/xulrunner).
freak
PureBasic Team
PureBasic Team
Posts: 5948
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

That is the problem. The underlying function returns no value, so it cannot be checked.
You need to set the path to the directory where mozilla, or firefox is installed.
"/usr/lib/firefox" works well for me.
quidquid Latine dictum sit altum videtur
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

/usr/lib/seamonkey IS where mozilla is installed (except that they call it seamonkey).

Edit: /usr/lib/firefox doesn't work either.
freak
PureBasic Team
PureBasic Team
Posts: 5948
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

I am sorry, i can give you no other useful information.
The documentation on the gtkmozembed.so really sucks.

Basically the first parameter of WebGadgetPath() is just used to load the .so file,
while the second one is passed to the gtk_moz_embed_set_comp_path() function.
(see here: http://www.mozilla.org/unix/gtk-embedding.html)
As you can see, not really a lot of helpful information there.

Well, this is all i know. If anyone else has some clues on this it would help.
quidquid Latine dictum sit altum videtur
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

OpenLibrary() does not work either.

Code: Select all

Debug OpenLibrary(0, "/usr/lib/firefox/libgtkembedmoz.so") ; Fails
Debug FileSize("/usr/lib/firefox/libgtkembedmoz.so") ; Works
freak
PureBasic Team
PureBasic Team
Posts: 5948
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

Then there is something wrong with your file.
quidquid Latine dictum sit altum videtur
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

So basically:
Zenwalk's Firefox 2,
Zenwalk's Seamonkey,
Zenwalks's xulrunner,
Ubuntu's Firefox 1 and
Ubuntu's Mozilla browser
all ships with a broken libgtkembedmoz.so? :shock:

Both epiphany and galeon usees Firefox' libgtkembedmoz.so file and both of works fine.
Post Reply