diff options
author | Tim Janik <timj@src.gnome.org> | 1998-02-23 11:14:27 +0000 |
---|---|---|
committer | Tim Janik <timj@src.gnome.org> | 1998-02-23 11:14:27 +0000 |
commit | 1b656e0ddef81edfaf95aa766716d9e6179abb46 (patch) | |
tree | b726af8e20a11a7edcb4de9d349d1392116ce011 /gtk/gtkoptionmenu.c | |
parent | 7c99ffb89133d9de163ba2d18e5e596118c59a39 (diff) | |
download | gtk+-1b656e0ddef81edfaf95aa766716d9e6179abb46.tar.gz |
TODO updates (major ones ;).
have the send_event field in all GdkEvents.
gtkmenu.c, gtkacceleratortable.c, gtkwindow.c: unreference accelerator_table.
gtk_object_query_args: removed seq_ids again, must have been quite tired
when i commited that change ;)
gtkoptionmenu.c: assure GTK_BIN()->child is empty when reparenting
a menu_items child.
gtkwindow.c: fixed some memory leaks.
-timj
Diffstat (limited to 'gtk/gtkoptionmenu.c')
-rw-r--r-- | gtk/gtkoptionmenu.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtkoptionmenu.c b/gtk/gtkoptionmenu.c index 93d3236e2c..ad59e8faf7 100644 --- a/gtk/gtkoptionmenu.c +++ b/gtk/gtkoptionmenu.c @@ -459,6 +459,9 @@ gtk_option_menu_update_contents (GtkOptionMenu *option_menu) if (child) { gtk_container_block_resize (GTK_CONTAINER (option_menu)); + if (GTK_BUTTON (option_menu)->child) + gtk_container_remove (GTK_CONTAINER (option_menu), + GTK_BUTTON (option_menu)->child); if (GTK_WIDGET (option_menu)->state != child->state) gtk_widget_set_state (child, GTK_WIDGET (option_menu)->state); gtk_widget_reparent (child, GTK_WIDGET (option_menu)); |