Page 1 of 1

WebGadget doesn't work

Posted: Sat Jan 20, 2007 5:57 pm
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.

Posted: Sat Jan 20, 2007 6:28 pm
by freak
Did you correctly set the component path? (second argument of WebGadgetPath)
if this is incorrect, the gadget cannot render any data.

Posted: Sat Jan 20, 2007 6:32 pm
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).

Posted: Sat Jan 20, 2007 7:08 pm
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.

Posted: Sat Jan 20, 2007 7:13 pm
by Trond
/usr/lib/seamonkey IS where mozilla is installed (except that they call it seamonkey).

Edit: /usr/lib/firefox doesn't work either.

Posted: Wed Jan 31, 2007 12:33 am
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.

Posted: Fri Feb 02, 2007 6:51 pm
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

Posted: Sat Feb 03, 2007 3:08 am
by freak
Then there is something wrong with your file.

Posted: Mon Feb 05, 2007 6:55 pm
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.