blokkie
blokkie

Reputation: 5575

Python WebkitGtk: How to respond to the default context menu items?

The default context menu contains items like "Open link in new window" and "Download linked file", which don't seem to do anything. I obviously like to react on these items, but can't figure out how, since the port's documentation is a bit sparse. Does anybody know?

Upvotes: 2

Views: 860

Answers (1)

ptomato
ptomato

Reputation: 57920

In the C port, you have to connect to the 'create-web-view', 'new-window-policy-decision-requested', and 'download-requested' signals. I think the Python port works the same way. See this page for the documentation on the C versions of those signals:

http://webkitgtk.org/reference/webkitgtk-WebKitWebView.html

Upvotes: 2

Related Questions