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
This commit is contained in:
committed by
Matthias Clasen
parent
ccd3694e75
commit
34e44d63ea
@ -1,3 +1,9 @@
|
||||
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,14 +733,14 @@ 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;
|
||||
}
|
||||
|
||||
priv->image = NULL;
|
||||
|
||||
if (GTK_BIN (button)->child)
|
||||
gtk_container_remove (GTK_CONTAINER (button),
|
||||
GTK_BIN (button)->child);
|
||||
|
||||
|
||||
if (button->use_stock &&
|
||||
button->label_text &&
|
||||
gtk_stock_lookup (button->label_text, &item))
|
||||
|
||||
Reference in New Issue
Block a user