Re: Removing Menu Items




"Daniel J. Kressin" <kressd11@sol.acs.uwosh.edu> writes:

> I've got a GtkWidget *menuitem (dynamically allocated), part of a menu
> named bob.  What is the proper way to remove menuitem from bob and free
> the memory associated with menuitem?  There's a gtk_menu_item_destroy
> function in gtkmenuitem.c, but it doesn't appear to be in any .h files.

  gtk_widget_destroy (menuitem);

[ This will automatically remove the menuitem from its
  parent container. ]

Regards,
                                        Owen



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