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/gtktree.c | |
parent | d36df18dee814c690fd5736729ea54175b3be628 (diff) | |
download | gdk-pixbuf-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/gtktree.c')
-rw-r--r-- | gtk/gtktree.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/gtk/gtktree.c b/gtk/gtktree.c index ad14599b5..bbb1f9cae 100644 --- a/gtk/gtktree.c +++ b/gtk/gtktree.c @@ -69,14 +69,15 @@ static void gtk_tree_marshal_signal (GtkObject *object, GtkSignalFunc func, gpointer func_data, GtkArg *args); +static GtkType gtk_tree_child_type (GtkContainer *container); static GtkContainerClass *parent_class = NULL; static guint tree_signals[LAST_SIGNAL] = { 0 }; -guint +GtkType gtk_tree_get_type (void) { - static guint tree_type = 0; + static GtkType tree_type = 0; if (!tree_type) { @@ -153,12 +154,19 @@ gtk_tree_class_init (GtkTreeClass *class) container_class->remove = (void (*)(GtkContainer *, GtkWidget *)) gtk_tree_remove_item; container_class->foreach = gtk_tree_foreach; + container_class->child_type = gtk_tree_child_type; class->selection_changed = NULL; class->select_child = gtk_real_tree_select_child; class->unselect_child = gtk_real_tree_unselect_child; } +static GtkType +gtk_tree_child_type (GtkContainer *container) +{ + return GTK_TYPE_TREE_ITEM; +} + static void gtk_tree_init (GtkTree *tree) { |