PDA

View Full Version : pygtk extending existing embedded menu



giuspen
November 26th, 2009, 02:08 PM
hi,
I'm working upon a gtk.TextView that has its own right-click menu,
but I would like to add some menu items to it, does anybody know how to do it?
I'm able to create a totally new menu and associate it to the right click event but doing this i have then 2 menus.
thanks in advance.

diesch
November 26th, 2009, 06:45 PM
Connect a callback to the textview's populate-popup signal. The callback gets the menu as the second parameter.

giuspen
November 27th, 2009, 11:31 AM
Connect a callback to the textview's populate-popup signal. The callback gets the menu as the second parameter.


thanks a lot