Hi,

I am writing an application that uses GtkSourceView but examines source
files in read-only mode. As such, I don't need a lot of the menu items in
the pop-up menu that deal with editing/changing the source code. In
addition, I would like to add some menu items of my own.

I know that I can connect to the "populate-popup" signal in order to edit
the menu that is displayed but that only makes sense for adding more items
to the menu.

How would I go about removing items? I'd like to avoid clearing the entire
menu as I would like to keep items like "Copy" and "Select All".

Thank you,
Mitko
_______________________________________________
gnome-devtools mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/gnome-devtools

Reply via email to