GtkMozEmbed - embedded Mozilla Browser
| From: | Mike Dransfield | Date: | Mon, 26 Jan 2004 07:39:00 +0000 |
| Subject: | GtkMozEmbed - embedded Mozilla Browser | ||
| Groups: | php.gtk.dev | ||
| Request: | Send a blank email to php-gtk-dev+get-613@lists.php.net to get a copy of this message | ||
I have finally managed to get the MozEmbed widget ( http://www.mozilla.org/unix/gtk-embedding.html ) working with php-gtk.
It took a while, but I was surprised by how much is auto generated. I have managed to get it up and working on my system using a fresh mozilla 1.4.1 build, it segfaults with version 1.3.1.
Most of the main functions and callbacks seem to work correctly, and I can make a test browser.
I am not a very good c coder and therefore, the code has a lot of hard coded file locations (in config.m4 and mozembed.overrides)
I have uploaded the files here
http://www.dransfield7565.fsnet.co.uk/GtkMozEmbed.tar.gz
To compile, you will need to uncompress the archive to your php-gtk/ext directory, then change the directories in config.m4 and mozembed.overrides to match your system. Then (in your root php-gtk source dir) type ./buildconf, then ./configure --enable-mozembed && make && make install. You should be able to run the test mozembed.php.
I would appreaciate any comments/help on making this better, with the intention on having it included in the distribution (if any more will be released).
Regards
Mike