Mozilla binding

P

Paul Duncan

--gjCq2pJbHNzDVy+e
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

* Alex Martin Ugalde ([email protected]) said:
Anyone knows if it exists some Ruby binding to Mozilla?
=20
My goal is to render HTML pages in Ruby using the Gecko engine, like
Python does with PythonMoz (http://sourceforge.net/projects/pygtkmoz/).

There's a gtkmozembed binding on RAA at
http://raa.ruby-lang.org/list.rhtml?name=3Dgtkembedmoz, but it hasn't been
updated since 2001. Also, both the project page and the download URL
redirect to... nothing.

Most people doing GTK+ development are using GTK+ 2.0 now-a-days, and
gtkmozembed has been ported to GTK+ 2.0. If you want to use it, you'll
probably need to write bindings for it. The header only has about 40
functions, so it shouln't take more than a day or two to wrap.

If writing bindings isn't your cup of tea, you might be able to use
KHTML instead. I don't do Qt or KDE, so I can't provide any help in
that area.

Hope this helps...
Regards,
Alex

--=20
Paul Duncan <[email protected]> pabs in #ruby-lang (OPN IRC)
http://www.pablotron.org/ OpenPGP Key ID: 0x82C29562

--gjCq2pJbHNzDVy+e
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFB5tFWzdlT34LClWIRAtobAJ4vsOTsaO94FDbNAKx+NP9R2086hQCgysKx
gapo+uDBdTNJZYeahh0Mz2Y=
=z8aS
-----END PGP SIGNATURE-----

--gjCq2pJbHNzDVy+e--
 
B

Bauduin Raphael

Paul said:
There's a gtkmozembed binding on RAA at
http://raa.ruby-lang.org/list.rhtml?name=gtkembedmoz, but it hasn't been
updated since 2001. Also, both the project page and the download URL
redirect to... nothing.

Most people doing GTK+ development are using GTK+ 2.0 now-a-days, and
gtkmozembed has been ported to GTK+ 2.0. If you want to use it, you'll
probably need to write bindings for it. The header only has about 40
functions, so it shouln't take more than a day or two to wrap.

If writing bindings isn't your cup of tea, you might be able to use
KHTML instead. I don't do Qt or KDE, so I can't provide any help in
that area.

I can only recommend using Ruby with the QtBindings if you can use it.
It was easy to get a useful application fast (although I didn't know Qt
and I never really programed GUI apps).

The tutorial of the KDE bindings even show how to write a browser (in,
what, 80 lines?):
http://developer.kde.org/language-bindings/ruby/kde3tutorial/p4.html

Raph
 
J

Jeffrey Dik

Hi,

As far as I know, there aren't any ruby bindings to Mozilla. However,
the ruby bindings of gtkhtml2 (part of the ruby-gnome2 project) worked
quite well for me. I don't think gtkhtml2 is as powerful as the gecko
engine, but when I hacked together a RSS reader a year or so ago, it
rendered pages just fine.

It would be nice to see a rubygtkmoz. Surf the web with Rubyfox :)
Jeff
 
A

Alex Martin Ugalde

Hi Jeff,
It would be nice to see a rubygtkmoz. Surf the web with Rubyfox :)

I did before the post, but it seems to be abandonware.
As far as I know, there aren't any ruby bindings to Mozilla. However,
the ruby bindings of gtkhtml2 (part of the ruby-gnome2 project) worked
quite well for me.

I'll try it, i hope it suits my needs :)

Thanks!
Alex
 
A

Alex Martin Ugalde

Hi Paul,
probably need to write bindings for it. The header only has about 40
functions, so it shouln't take more than a day or two to wrap.

It could be a good way.
If writing bindings isn't your cup of tea, you might be able to use
KHTML instead. I don't do Qt or KDE, so I can't provide any help in
that area.

This how i'm doing it now, but i don't like it too much because it
wastes time: launch it, writing and read the html rendered image.
Hope this helps...

It does :)

Thanks
Alex
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,164
Messages
2,570,898
Members
47,439
Latest member
shasuze

Latest Threads

Top