Q: How to selectively remove a menu-item from a popup-menu in gtk+2?



Greetings everybody!

I searched the net with google up and down, tried to find info in this 
mailing-lists archives and asked in serveral channels on irc.gnome.org about 
it, but I did not get any help on the subject.

The only API-calls I found which seem to remove menu-items from an already 
realized popup-menu are gnome_app_remove_menus() and friends. But those seem 
to only to work on the main menu-bar of an application window, but not a 
popup-menu attached to a widget.

I am looking for a function that takes e.g. a pointer to the popup-menu in 
question, a menu-item index as start and an additional menu-item index as end 
using this info to remove/delete all menu-items within this certain range. Is 
there something like this?

Thanks in advance for your time and kind advice!

Best regards...

MacSlow



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