Re: Changing popup menu of GtkSourceView

Mitko Haralanov via gnome-devtools <[email protected]> Tue, 5 Feb 2019 13:43:25 -0800
Newsgroups gmane.comp.gnome.devtools
Message-ID <CAN1y3kJeREB+-UZRisxYzBdbYkJnADu2GxqX3NLDN8gyieXu3A@mail.gmail.com>
Can no-one help? Are there any GtkSourceView devs reading this forum?

On Mon, Dec 10, 2018 at 10:29 AM Mitko Haralanov <[email protected]> wrote:
>
> Any ideas on this?
>
> Thanks.
>
> On Mon, Oct 15, 2018 at 8:23 AM Mitko Haralanov <[email protected]> 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