Commit 34e44d63 authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

Don't leave priv->image dangling when use-stock is set to FALSE. (#437281,

2007-07-03  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkbutton.c (gtk_button_construct_child): Don't leave
        priv->image dangling when use-stock is set to FALSE.  (#437281,
        Jochen Baier)


svn path=/trunk/; revision=18362
parent ccd3694e
2007-07-03 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkbutton.c (gtk_button_construct_child): Don't leave
priv->image dangling when use-stock is set to FALSE. (#437281,
Jochen Baier)
2007-07-03 Tor Lillqvist <tml@novell.com>
* configure.in: Handle GDK_PIXBUF_EXTRA_LIBS like GDK_EXTRA_LIBS,
......
......@@ -733,9 +733,9 @@ gtk_button_construct_child (GtkButton *button)
image = g_object_ref (priv->image);
if (image->parent)
gtk_container_remove (GTK_CONTAINER (image->parent), image);
}
priv->image = NULL;
}
if (GTK_BIN (button)->child)
gtk_container_remove (GTK_CONTAINER (button),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment