Changing popup menu of GtkSourceView
Mitko Haralanov via gnome-devtools <[email protected]> Mon, 15 Oct 2018 08:23:19 -0700
| Newsgroups | gmane.comp.gnome.devtools |
|---|---|
| Message-ID | <CAN1y3kKVVmECw4E8cFpep6d-B0jHSn1os1HcfCj=CGyhKAOGCA@mail.gmail.com> |
--===============6554564234071362250== Content-Type: multipart/alternative; boundary="00000000000005841505784605bd" --00000000000005841505784605bd Content-Type: text/plain; charset="UTF-8" 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 --00000000000005841505784605bd Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Hi,<div><br></div><div>I am writing an application that us= es GtkSourceView but examines source files in read-only mode. As such, I do= n't need a lot of the menu items in the pop-up menu that deal with edit= ing/changing the source code. In addition, I would like to add some menu it= ems of my own.</div><div><br></div><div>I know that I can connect to the &q= uot;populate-popup" signal in order to edit the menu that is displayed= but that only makes sense for adding more items to the menu.</div><div><br= ></div><div>How would I go about removing items? I'd like to avoid clea= ring the entire menu as I would like to keep items like "Copy" an= d "Select All".</div><div><br></div><div>Thank you,</div><div>Mit= ko</div></div> --00000000000005841505784605bd-- --===============6554564234071362250== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ gnome-devtools mailing list [email protected] https://mail.gnome.org/mailman/listinfo/gnome-devtools --===============6554564234071362250==--