Re: gtk_menu_remove()



Dennis Bjorklund <db zigo dhs org> writes:
> Since there is a gtk_menu_insert() shouldn't there also be a function
> gtk_menu_remove()? I checked gtk+ 2.0 and it's not there either.
> 
> What is the "correct" way to remove an item from a menu without destroying
> it? I use gtk_container_remove now, and even if that is correct I still
> think there should be a matching gtk_menu_remove() to the
> gtk_menu_insert() (and append, and prepend) that exists now.
> 

If you think about how object-oriented programming works you'll
realize this is really broken.

(would you have all operations on GtkWidget also renamed to
gtk_menu_*? and the other methods on GtkContainer in addition to
remove?)

Havoc




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