From aa49527fa78bf5b3a3f1394092b248e27e1bfa3f Mon Sep 17 00:00:00 2001 From: Owen Taylor Date: Thu, 19 Jul 2001 14:57:15 +0000 Subject: Enforce the widget/child realization/mapping invariants. Sat Jul 7 02:50:14 2001 Owen Taylor * gtk/gtkwidget.c (gtk_widget_set_parent): Enforce the widget/child realization/mapping invariants. * gtk/gtkwidget.[ch] gtk/gtkprivate.h: Add functions gtk_widget_[get/set]_child_visible() to control whether visible children of a mapped window are mapped. * docs/widget_system.txt: Updated for changes in container contract, and addition of GTK_CHILD_VISIBLE. * gtk/gtkcontainer.c: Add generic map()/unmap() functions that work for almost all containers. * gtk/gtknotebook.c gtk/gtkpacker.c: Use gtk_widget_set_child_visible() where necessary. * gtk/*.c: Remove excess map(), unmap(), and realization/mapping invariant enforcing code from many containers. --- gtk/gtkcontainer.h | 1 - 1 file changed, 1 deletion(-) (limited to 'gtk/gtkcontainer.h') diff --git a/gtk/gtkcontainer.h b/gtk/gtkcontainer.h index cebb10b826..34f0b07f83 100644 --- a/gtk/gtkcontainer.h +++ b/gtk/gtkcontainer.h @@ -191,7 +191,6 @@ void gtk_container_child_get_property (GtkContainer *container, GtkWidget *child, const gchar *property_name, GValue *value); - #define GTK_CONTAINER_WARN_INVALID_CHILD_PROPERTY_ID(object, property_id, pspec) \ G_OBJECT_WARN_INVALID_PSPEC ((object), "child property id", (property_id), (pspec)) -- cgit v1.2.1