diff options
author | Tim Janik <timj@src.gnome.org> | 1998-06-16 05:20:05 +0000 |
---|---|---|
committer | Tim Janik <timj@src.gnome.org> | 1998-06-16 05:20:05 +0000 |
commit | 742d01908f754f9473e6a7993276c3aee060d1ec (patch) | |
tree | bfeef446f36bd92a51a6fa3ccd671ec706b0b9c4 /gtk/gtkpaned.c | |
parent | d36df18dee814c690fd5736729ea54175b3be628 (diff) | |
download | gtk+-742d01908f754f9473e6a7993276c3aee060d1ec.tar.gz |
boy! did i really modify that many files?
anyways, here go the child args and a lot of cleanups ;)
you wouldn't want me to put the ChangeLog entry in here, would you?
Diffstat (limited to 'gtk/gtkpaned.c')
-rw-r--r-- | gtk/gtkpaned.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gtk/gtkpaned.c b/gtk/gtkpaned.c index c1d8780b32..2009ae7f7a 100644 --- a/gtk/gtkpaned.c +++ b/gtk/gtkpaned.c @@ -34,6 +34,7 @@ static void gtk_paned_remove (GtkContainer *container, static void gtk_paned_foreach (GtkContainer *container, GtkCallback callback, gpointer callback_data); +static GtkType gtk_paned_child_type (GtkContainer *container); static GtkContainerClass *parent_class = NULL; @@ -85,6 +86,16 @@ gtk_paned_class_init (GtkPanedClass *class) container_class->add = gtk_paned_add; container_class->remove = gtk_paned_remove; container_class->foreach = gtk_paned_foreach; + container_class->child_type = gtk_paned_child_type; +} + +static GtkType +gtk_paned_child_type (GtkContainer *container) +{ + if (!GTK_PANED (container)->child1 || !GTK_PANED (container)->child2) + return GTK_TYPE_WIDGET; + else + return GTK_TYPE_NONE; } static void |