Questions tagged [webkitgtk]

WebKit/GTK+ is the new GTK+ port of the WebKit, an open-source web content engine that powers numerous applications such as web browsers, email clients, feed readers, web and text editors.

WebKitGTK+ is the version of the WebKit open-source web engine that uses GTK+ as its user-facing front-end. It's a powerful system with a rich array of functionality.

103 questions
2
votes
1 answer

Returning Native Objects Using Javascriptcore Glib API

I am learning webExtensions and I had written a sample web extension for webkit where I used javascriptcore DOM/C API.. I had referred Binding native objects with JavascriptCore C Api and https://github.com/vrruiz/WebKit-JavaScriptCore-Extensions…
munez bn
  • 51
  • 5
2
votes
1 answer

How to add menu items to WebKitContextMenu (javascript, gjs)?

When I try to add menuitems to a webview with this code: my_webview.connect('context-menu', Lang.bind(this, function(webview, c_menu, event, hit_test){ var action = new Gtk.Action({name:"some_name", label:"Some Label"}); …
eiro
  • 72
  • 1
  • 8
2
votes
0 answers

How to get an element's property in WebKitGTK?

I want to get an element's property (for instance, value) in WebKitGTK. I can easily get an attribute, and I can also get some properties of some types by using e.g. webkit_dom_html_input_element_get_value, but is there a general way of getting any…
Emily
  • 2,577
  • 18
  • 38
2
votes
2 answers

Get a reference to Gtk.OffscreenWindow cairo surface

I am using Gtk and WebKit from gi.repository using python on X11 server (on raspbian). I have a Gtk.OffscreenWindow with a WebKit.WebView widget in it and I am looking for a way to get a reference to the actual surface data of the…
kapetanos
  • 21
  • 1
2
votes
0 answers

Python webkitGtk Cookie

I made a small webkitgtk browser embedded in a gkt3 app. All is workng fine except i cant save cookies.i found here 7766445: cookiejar = Soup.CookieJarText.new("cookie.txt",…
2
votes
2 answers

How to inject CSS into webkit?

On Linux I'm creating a webkit window which needs to display a certain URL. I'm doing that like the following: GtkWidget *main_window = gtk_window_new(GTK_WINDOW_TOPLEVEL); // Create a browser instance WebKitWebView *webView =…
hookenz
  • 36,432
  • 45
  • 177
  • 286
2
votes
1 answer

How to intercept click on link in WebKit.WebView (WebKitGtk)?

I'm making my own RSS reader, I have a gi.repository.WebKit.WebView widget in which I read summary of RSS items. What I want to make is to change default behaviour of WebView that clicking in link would load that URL in default system web…
BPS
  • 1,133
  • 1
  • 17
  • 38
2
votes
0 answers

webkit-gtk cannot highlight current text match when searching text within a webview

I'm using webkit-gtk-1.8.3. I'm having trouble highlighting the current text match. I can highlight all of the marked text matches using this block of code within a keypress function: hits = webkit_web_view_mark_text_matches…
nomadicME
  • 1,389
  • 5
  • 15
  • 35
2
votes
1 answer

Injecting image content into webkit load

Inside my WebKitGTK+ widget, I want to transparently replace some of the images of an HTML page with different image data I hold in memory. According to the documentation at…
2
votes
1 answer

Waiting for a website to load completely with WebKitGTK+

Possible Duplicate: Webkit GTK: Determine when a document is finished loading I want to fetch a website's HTML contents with WebKitGTK+ to handle the javascript redirections automatically. I am using the following Python code: def scanURL(domain,…
Axel Isouard
  • 1,498
  • 1
  • 24
  • 38
1
vote
1 answer

Save page of WebKitWebView into file

I have this almost solved. I've found this function: void webkit_web_view_save_to_file (WebKitWebView *web_view, GFile *file, WebKitSaveMode save_mode, …
1
vote
2 answers

WebKitGtk doesn't load local files

I've tried loading a local html file using webkit_web_view_load_uri() with a file:// URL. However, the webview would display a blank page. To circumvent this, I tried using webkit_web_view_load_html() and it worked correctly. Now that I'm trying to…
1
vote
0 answers

detect when window size changed

I am making a web browser with gtk-rs. I am trying to do a check for fullscreen. I can get the screen size and compare that to the window size, if they are the same it is in fullscreen and I can hide the unnecessary widgets. Though this works, I can…
1
vote
0 answers

Fullscreen GTK Box should only fullscreen webkit2gtk window, but fullscreens whole app instead

I am attempting to make a Webkit2gtk browser in Rust using WebKit2Gtk-rs. When the WebView attempts to go into fullscreen, it makes the entire application fullscreen, including stuff outside the webview. screenshot of application What I am doing is…
1
vote
1 answer

Correlation between webkit Safari and webkitGTK

Which version of (Mac) Safari Webkit is WebKitGTK 2.30 based on?
Elena Alexeenko
  • 100
  • 4
  • 13