2009/10/22 Lars Wirzenius :
> * when you create and add the menu item, keep a reference to it
>
> * when you remove it, call the function to remove a child from the
> container; with the Python binding's it's just the .remove(menuitem)
> method, but in C I guess it's gtk_container_remove.
Actually
ke, 2009-10-21 kello 23:11 +0200, Peter Daum kirjoitti:
> There are several functions to dynamically change/reorder menus,
> but I couldn't find or figure out a way how to remove a certain
> item from a Menu. Is this possible? How?
>
> (I tried some strange things like calling item->destroy
> and
jcup...@gmail.com wrote:
2009/10/21 Peter Daum :
(I tried some strange things like calling item->destroy
and was not surprised that it didn't work ...)
You can just use gtk_widget_destroy(item), I believe. Though I
generally just destroy and rebuild the whole menu for safety.
oops - when I
On Wed, 21 Oct 2009, Peter Daum wrote:
> There are several functions to dynamically change/reorder menus,
> but I couldn't find or figure out a way how to remove a certain
> item from a Menu. Is this possible? How?
>
> (I tried some strange things like calling item->destroy
> and was not surprise
2009/10/21 Peter Daum :
> There are several functions to dynamically change/reorder menus,
> but I couldn't find or figure out a way how to remove a certain
> item from a Menu. Is this possible? How?
>
> (I tried some strange things like calling item->destroy
> and was not surprised that it didn't
There are several functions to dynamically change/reorder menus,
but I couldn't find or figure out a way how to remove a certain
item from a Menu. Is this possible? How?
(I tried some strange things like calling item->destroy
and was not surprised that it didn't work ...)
Regards,