gtk+ r21771 - in trunk: . gtk
- From: johan svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk+ r21771 - in trunk: . gtk
- Date: Fri, 7 Nov 2008 16:25:26 +0000 (UTC)
Author: johan
Date: Fri Nov 7 16:25:26 2008
New Revision: 21771
URL: http://svn.gnome.org/viewvc/gtk+?rev=21771&view=rev
Log:
2008-11-07 Johan Dahlin <jdahlin async com br>
* gtk/gtkcontainer.c (gtk_container_buildable_add_child):
Check for child->parent instead of GTK_WIDGET_TOPLEVEL.
Modified:
trunk/ChangeLog
trunk/gtk/gtkcontainer.c
Modified: trunk/gtk/gtkcontainer.c
==============================================================================
--- trunk/gtk/gtkcontainer.c (original)
+++ trunk/gtk/gtkcontainer.c Fri Nov 7 16:25:26 2008
@@ -311,7 +311,7 @@
{
GTK_BUILDER_WARN_INVALID_CHILD_TYPE (buildable, type);
}
- else if (GTK_IS_WIDGET (child) && GTK_WIDGET_TOPLEVEL (child) == FALSE)
+ else if (GTK_IS_WIDGET (child) && GTK_WIDGET (child)->parent == NULL)
{
gtk_container_add (GTK_CONTAINER (buildable), GTK_WIDGET (child));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]