[webkit-help] X11 sample?
Vincent P. Ellis
vincent at linuxmail.org
Wed Feb 19 07:13:39 PST 2020
I've been trying to use webkit with a pure X11 window without any luck. My GTK tests went well, and here's my code:
#include <webkit2/webkit2.h>
#include <gtkmm.h>
int main(int argc, char **argv)
{
Glib::RefPtr<Gtk::Application> app = Gtk::Application::create(argc, argv, "Browser");
Gtk::Window window;
window.set_default_size(500, 300);
WebKitWebView* widget = WEBKIT_WEB_VIEW(webkit_web_view_new());
Gtk::Widget* wrapper = Glib::wrap(GTK_WIDGET(widget));
window.add(*wrapper);
webkit_web_view_load_uri(widget, "https://www.google.com");
window.show_all();
app->run(window);
exit(0);
}
I've been trying to do that exact same test, but without GTK, only pure X11. Is that possible?
More information about the webkit-help
mailing list