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



On Saturday 10 August 2002 04:24, Mirco Müller wrote:

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?

I haven't actually tried this, but shouldn't
    gtk_widget_hide(GTK_WIDGET(menuitem));
do the trick? Of course you'd need to save the menuitem widget pointers 
somewhere on menu creation, or find them again later on.

cheers
-Tim




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