Re: Removing a menubar item




Ron Forrester <rjf@zero-ping.com> writes:

> There doesn't seem to be a removal counterpart to
> gtk_menu_bar_insert(). Is this true? How can I remove a menubar item I
> inserted with gtk_menu_bar_insert()?

If you don't need the item again:

  gtk_widget_destroy (item);

If you do need it again:

  gtk_object_ref (GTK_OBJECT (item));
  gtk_container_remove (GTK_CONTAINER (menubar), item);
  /* insert it somewhere else */
  gtk_object_unref (GTK_OBJECT (item));

Regards,
                                                  Owen




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