Python WebkitGtk: how to react to default context menu items?

The default context menu contains items such as "Open Link in New Window" and "Download Linked File", which don't seem to do anything. I would obviously like to respond to these questions, but cannot figure out how as the port documentation is a bit sparse. Somebody knows?

+2


source to share


1 answer


In port C, you need to connect to the " create-web-view

", " new-window-policy-decision-requested

" and " download-requested

" signals . I think the Python port works the same. See This page for documentation on the C versions of these signals:



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

+2


source







All Articles