Re: Changing popup menu of GtkSourceView



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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]