Home » U++ Library support » U++ Widgets - General questions or Mixed problems » GtkWidget inside U++
Re: GtkWidget inside U++ [message #26869 is a reply to message #26868] |
Fri, 04 June 2010 13:38   |
|
dolik.rce wrote on Fri, 04 June 2010 12:22 |
koldo wrote on Fri, 04 June 2010 08:32 | Hello Honza
Do you mean "the lost link" between Libwebkit (a portable web browser based on Safari) and U++ is the Gtk+ event loop that Libwebkit requires?.
In the last case would it be possible to launch webkit in a separate thread with its own Gtk+ event loop with a bridge to U++ code handling commands, windows resizing and events between main program and browser?
For example, in video player I am working there are now at least these threads:
- SDL event loop
- Video handling
- Audio handling
Video is showed in a separate window so bridge code handles resizing and send commands from U++ to SDL event loop.
If everything goes right it will be possible to:
- plug SDL events to U++ events, so a mouse left click in video window could be sent to U++ to show a menu
- use U++ window instead of SDL window
|
Hi Koldo,
Simply put yes, libwebkit could be run if U++ and gtk event loops could be connected somehow. I tried to run the webview in separate thread, but without that connecting layer it didn't make much sense. Plus it was crashing, but that was probably just my mistake 
It would be interesting experiment to create such connecting layers between U++ and various frameworks. It would allow to extend possibilities of U++ a lot. But on the other hand, it is pretty unclean solution. Actually more hack than solution It would probably bring a lot of overhead too.
I would personally prefer clean, full port of webkit to U++ (here webkit means the interface over WebCore and JavaScriptCore, not the entire engine ). In the end it might be about the same level of complexity as creating the connection layer...
Honza
|
If you intend to implement web core why do not try to implement chrome source?
|
|
|
Goto Forum:
Current Time: Mon Apr 28 11:17:01 CEST 2025
Total time taken to generate the page: 0.00792 seconds
|