diff options
Diffstat (limited to 'gtk/gtkbutton.c')
-rw-r--r-- | gtk/gtkbutton.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gtk/gtkbutton.c b/gtk/gtkbutton.c index 6a0869068f..84ea2bb562 100644 --- a/gtk/gtkbutton.c +++ b/gtk/gtkbutton.c @@ -586,8 +586,11 @@ gtk_button_construct_child (GtkButton *button) return; if (GTK_BIN (button)->child) - gtk_container_remove (GTK_CONTAINER (button), - GTK_BIN (button)->child); + { + gtk_container_remove (GTK_CONTAINER (button), + GTK_BIN (button)->child); + priv->image = NULL; + } if (button->use_stock && gtk_stock_lookup (button->label_text, &item)) |