Don't trigger warnings if there are extra references to the hbox.
2005-06-23 Matthias Clasen <mclasen@redhat.com> * gtk/gtkbutton.c (gtk_button_construct_child): Don't trigger warnings if there are extra references to the hbox. (#308677, Dan Winship)
This commit is contained in:
committed by
Matthias Clasen
parent
4e4f41ef4f
commit
81560a213a
@@ -1,5 +1,9 @@
|
||||
2005-06-22 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkbutton.c (gtk_button_construct_child): Don't
|
||||
trigger warnings if there are extra references to the
|
||||
hbox. (#308677, Dan Winship)
|
||||
|
||||
* gtk/gtkfilesystemunix.c: Ignore everything after the
|
||||
first space in lines from the .gtk-bookmarks file.
|
||||
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
2005-06-22 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkbutton.c (gtk_button_construct_child): Don't
|
||||
trigger warnings if there are extra references to the
|
||||
hbox. (#308677, Dan Winship)
|
||||
|
||||
* gtk/gtkfilesystemunix.c: Ignore everything after the
|
||||
first space in lines from the .gtk-bookmarks file.
|
||||
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
2005-06-22 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkbutton.c (gtk_button_construct_child): Don't
|
||||
trigger warnings if there are extra references to the
|
||||
hbox. (#308677, Dan Winship)
|
||||
|
||||
* gtk/gtkfilesystemunix.c: Ignore everything after the
|
||||
first space in lines from the .gtk-bookmarks file.
|
||||
|
||||
|
||||
@@ -644,7 +644,11 @@ gtk_button_construct_child (GtkButton *button)
|
||||
if (GTK_BIN (button)->child)
|
||||
{
|
||||
if (priv->image && !priv->image_is_stock)
|
||||
image = g_object_ref (priv->image);
|
||||
{
|
||||
image = g_object_ref (priv->image);
|
||||
if (image->parent)
|
||||
gtk_container_remove (GTK_CONTAINER (image->parent), image);
|
||||
}
|
||||
|
||||
gtk_container_remove (GTK_CONTAINER (button),
|
||||
GTK_BIN (button)->child);
|
||||
|
||||
Reference in New Issue
Block a user