Questions tagged [webkit2]
28 questions
0
votes
1 answer
[C/C++]WebKitGtk get scrollbar position
I'm trying to get the scrollbar position in a WebKitWebView.
I've read enough documentation to know that there's no intuitive way.
It needs to be packaged into one executable, so a WebKitExtension won't cut it out.
I don't even know where to begin…

DisableGraphics
- 91
- 6
0
votes
0 answers
How can I use multiple instances of webkit in c++ gtkmm program?
Short question:
How to make different instances of webkit in C++?
Long question:
I'm writing a simple webbrowser with Webkit2 in C++ on ubuntu with a gtkmm gui. I would like to use different pages with different Webkit instances.
So far, I have a…

useruser
- 1
- 4
0
votes
1 answer
How to change the position of GTK windows
I am trying to display the html file as a desktop widget in Ubuntu 20.04, I got the working code from NOrbert answer but the problem is it is left aligned(see the attached image)
The working python code
import gi
gi.require_version('Gtk',…

sai
- 87
- 8
0
votes
1 answer
How to save edited webview result?
Situation description:
Python 3.7, GTK 3.0, PyGObjects 3.34.0 Webkit2 4.0
I have a dialog window, with GtkNotebook containing 2 tabs.
1. tab contains editable Webkit webview, the 2. tab contains textview. One of the arguments provided in class…
0
votes
0 answers
How do I get the image title attribute for the image under the cursor in WebKit2GTK
This seems like a really dumb question, but I can't figure out what to Google. I want the xkcd hovertext, which is the title attribute of the img tag. WebKitHitTestResult has get_link_uri, get_link_title, and get_image_uri, but not get_image_title.…

Anschel Schaffer-Cohen
- 901
- 6
- 17
0
votes
1 answer
Getting Seg Fault when I try to dynamically load a custom library (.so) which is compiled with webkit2gtk library
I have created a shared library which has a function displaywebview that launches a GTK window and loads the URL into it using webkit2gtk.
Now I am writing a caller program which loads this library using dlopen, gets the method displaywebview using…

Jainam MJ
- 301
- 4
- 11
0
votes
1 answer
webkit2gtk-4.0 script_message_received does not work vala
I am creating a WebKit WebView from Vala.
I connected the UserContentManager and registered a script message handler.
I also connected the script_message_received signal before that, as it is writte in the Valadoc documentation.
The script was…

user199587
- 11
- 5
0
votes
0 answers
How to connect to UserContentManager "script-message-received" from Python, Javascript?
How do I connect to WebKit2.UserContentManager "script-message-received" from Python, Javascript? I've been banging my head against the "wall" for days trying to figure this out.
I'm trying to get the UserContentManager to return the whole document,…

taupist
- 11
- 4
0
votes
1 answer
Gtk 3 Window "freezes" when WebKit2 is used (Vala)
so recently I've been playing around with Vala and Gtk+3.0 and I decided to create a really simple web browser as a part of one of my apps, in order to show one of my webpages which uses Google Maps API to show some markers. I've created a class…

user3752782
- 9
- 4
0
votes
1 answer
python 3 pygi webkit2 api how to call a variable inside __init__(self):
I got the class below and i need to call self.webview variable from a function inside another class. how do i achieve that.
class Window(w):
def __init__(self):
self.webview = WebKit2.WebView()
class anotherclass:
def…

codesardine
- 35
- 10
0
votes
1 answer
Webkit2gtk get new window link
I need to get the link in a new window requirement webkit2gtk
Where is the uri of the new window, in create-web-view?
its to webkitGTK i need for webkit2Gtk

vampiroDx
- 13
- 2
0
votes
1 answer
Clear selection in WebKit2 Web Extension without JavaScript
I want to clear the selection from a web extension.
There is a signal selection-changed, but there does not seem to have a way to clear the selection.
I tried creating a WebKitDOMRange but it seems there is no way to set this new range in the…

antoyo
- 11,097
- 7
- 51
- 82
0
votes
2 answers
fatal error: webkit2/webkit2.h: No such file or directory
On Arch Linux, after upgrading to Gnome 3.14, I have several troubles with Webkit2Gtk.
Vala:
Consider the following vala test:
using Gtk;
using WebKit;
public class ValaWebkit : Window {
private WebView web_view;
public ValaWebkit(){
…

lviggiani
- 5,824
- 12
- 56
- 89