Reputation: 2832
Edit: Looks like im_append_menuitems is not the function to get a popup menu. Vte inherits from Gtk.Widget so the way to get a menu is probably to connect to a right mouse click and generate a custom menu. I will look into this and if it works that will be the answer.
I'm using gtk3 with python.
When opening a vte window created in python gtk I can do all the normal things one would expect from a terminal except right click for a dropdown menu.
In the C documentation there's vte_terminal_im_append_menuitems ().
I haven't tried it yet because it requires a GtkMenuShell and I've only used GtkMenu. So I might have trouble using it.
The documentation isn't the best for edge cases, and I'm using python which doesn't always have the bindings made right. Some of the abstract gtk classes I've tried in python have given me trouble too.
I'm wondering if there is an easier way than GtkMenuShell.
If not an example of GtkMenuShell would help.
In the meantime I'm going to try to do it on my own. If I come up with the code soon I'll post it as an answer.
Upvotes: 0
Views: 307