It seems that my previous mail came bad, so i try again:
Hello. I agree (in the general discussion) that it is a bad idea to keep
closed the dillo FLTK code. (I reserve other opinions for other mail)
This mail is only because i have some unfinished code for dillo and want to
open/show/give to the rest of the list. One can not demand something without do the same.
I have a Dillo PlugIn that add tabs to dillo. The plug in is a GTK 1.2 app
and a DPI at the same time. I do not known GTK 1.2 and do not have time to
learn it. I was waiting for the FLTK dillo to program a FLTK version, but
now i think that it is better to show bad programed unfinished code instead
of wait. Try to run it before watch the code (based on a GTK 1.2 example)
I hope that some GTK programer can finish it.
How do it work:
Now dillo can be embedded in other program. This is used by sylpheed for
example. The app create a especial gtk widget get its xid and run dillo like
that:
$ dillo -x xid(this is a number)
Then that dillo will appear in the gkt widget and not in a separate window.
With a few changes (18 lines added to dillo) dillo can ask the xid to a DPI when it want to open a new
window. The DPI is a GTK window with a notebook widget. Each time dillo ask
it for a xid the DPI adds a new tab and pass its xid to dillo and dillo
appear in the tab. (If the xid returned by the DPI is 0 dillo open a separate window)
TODO:
- Remove the GTK example code
- Add menus to tabs, close tab button ...
- maybe add a configuration file
Instructions to test it:
download the patch attached to this mail (tabs_dpi.diff)
get the last dillo cvs (if asked for a password, press ENTER)
$ cvs -z3 -d:pserver:anonymous@auriga.wearlab.de:/sfhome/cvs/dillo login
$ cvs -z3 -d:pserver:anonymous@auriga.wearlab.de:/sfhome/cvs/dillo co dillo
change to the dillo cvs directory and apply the patch
$ cd dillo
$ patch -p1 < ../tabs_dpi.diff
generate configure, configure code and compile it
$ ./autogen.sh && ./configure --disable-dlgui && make
install the tabs dpi and optionaly the patched dillo
# make install
run the patched dillo comanding it to ask the xid and with a given size
(only to see the dillo window entirely)
$ dillo -x ask -g 700x500
To open a new tab use midle click on a link or the menu file->new browser
To close a tab use the remove page button or the menu file->close window
Excuse me my english and please test and tell what you think about this.
Diego.