diff options
author | Owen Taylor <otaylor@src.gnome.org> | 1998-05-01 04:23:59 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 1998-05-01 04:23:59 +0000 |
commit | 05bc6a5b3639869eee69cfa4a2db8b8968b247cb (patch) | |
tree | 58bad8f48d24c88dfc95206defe79dd0464256f6 /gtk/gtkbox.c | |
parent | e909f843f8e2949144e624ce1af4fd1737396f62 (diff) | |
download | gdk-pixbuf-05bc6a5b3639869eee69cfa4a2db8b8968b247cb.tar.gz |
Merged changes from gtk-1-0. Check ChangeLog for details.
Diffstat (limited to 'gtk/gtkbox.c')
-rw-r--r-- | gtk/gtkbox.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkbox.c b/gtk/gtkbox.c index 58891217f..0a58ca046 100644 --- a/gtk/gtkbox.c +++ b/gtk/gtkbox.c @@ -160,6 +160,7 @@ gtk_box_pack_start (GtkBox *box, g_return_if_fail (box != NULL); g_return_if_fail (GTK_IS_BOX (box)); g_return_if_fail (child != NULL); + g_return_if_fail (child->parent == NULL); child_info = g_new (GtkBoxChild, 1); child_info->widget = child; @@ -199,6 +200,7 @@ gtk_box_pack_end (GtkBox *box, g_return_if_fail (box != NULL); g_return_if_fail (GTK_IS_BOX (box)); g_return_if_fail (child != NULL); + g_return_if_fail (child->parent == NULL); child_info = g_new (GtkBoxChild, 1); child_info->widget = child; |