Within the signal you can get the menu an then just remove(gtk_container_remove) the items you don't want..
Am 05.02.19 um 22:43 schrieb Mitko
Haralanov via gnome-devtools:
Can no-one help? Are there any GtkSourceView devs reading this forum? On Mon, Dec 10, 2018 at 10:29 AM Mitko Haralanov <voidtrance gmail com> wrote:Any ideas on this? Thanks. On Mon, Oct 15, 2018 at 8:23 AM Mitko Haralanov <voidtrance gmail com> wrote: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 gnome-devtools gnome org https://mail.gnome.org/mailman/listinfo/gnome-devtools |