Lobster,
A few minutes and it was all obvious how to use . . .
Fine, I think it is important to keep it simple.
I should add a help button, that explains the limitations that make the usage different from other browsers, e.g. how to download a file (with pwget).
Everything seems a lot faster than using other browsers?
Is that possible?
Well it just uses Gtk, while the Gtk support of Seamonkey / Firefox is not "native", but added "afterwards" to their internal widget-set.
This could well be seen in their older releases, when not all elements looked like a Gtk application.
I have read, that you meanwhile can extend the grafical interface of Firefox with HTML/Javascript.
Such a lot of functionality costs resources.
How much of Seamonkey is it using?
Just Gecko (the renderengine).
For this reason I also can not use right-click menus, as this would require to include the headers of other seamonkey libraries.
I was able to grab mouseclicks by slightly modifying /usr/share/vala/vapi/gtkmozembed.vapi
Like this:
Code: Select all
public signal void dom_mouse_out (int dom_event);
public signal void dom_mouse_down (int dom_event);
public signal void dom_mouse_up (int dom_event);
public signal void dom_activate (int dom_event);
public signal void dom_mouse_click (int dom_event);
But this does not really help us.
To find out, what button was clicked, I would need:
Code: Select all
public signal void dom_mouse_up (gpointer dom_event);
(defined by: /usr/include/gtkembedmoz/gtkmozembed.h)
The gpointer points to a special event from the seamonkey libraries.
As I don't know, how to include them, I used the "int" workaround.
Like this I can catch, when a button is clicked. But as I have not the event-pointer, i cannot use something like:
button = event.button
This means, I now have reached the limits of what can be done with gtkembedmoz.
Is the feature set complete?
What are your future intentions Mark?
More or less.
I might add a button, to download/view the source of a page.
Maybe add the support to execute shellscripts, that was discussed up earlieron with ttuuxx.
One other nice feature might be a "PuppysBrowser Presentation Language".
If a file with the suffix *.pbpl is loaded, the browser would run commands in it.
Like:
Code: Select all
cd /root/presentation
page_1=1.htm
page_2=2.htm
show page_1
wait 10
show page_2
Then you would see a buttonbar on the left side, that would allow to open a page directly, or if you click none, the presentation would run just like a slideshow.
As HTML files can display videos, pictures and such, this could be a nice replacement for Powerpoint presentations
And maybe add an option to run it without window border, as I did long ago here:
http://murga-linux.com/puppy/viewtopic.php?p=139725
And of course try to use "Webkit" as alternative to Gecko.
And maybe an own option dialog to set default fonts or so.
But all this has no high priority, I might first concentrate on other Genie examples.
Glad, you like it
Mark