diff options
author | Owen Taylor <otaylor@redhat.com> | 2001-11-18 00:10:57 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2001-11-18 00:10:57 +0000 |
commit | 3f376d75ac790285d03735b1416290b6031b2d07 (patch) | |
tree | aaae20098a8cdca9068002c81356e8430c8abf23 /tests | |
parent | a036c6e59f27ce53950c64a7672fa2cf51b21f19 (diff) | |
download | gdk-pixbuf-3f376d75ac790285d03735b1416290b6031b2d07.tar.gz |
We no longer need to create the signals here ... they come from the
Sat Nov 17 19:08:13 2001 Owen Taylor <otaylor@redhat.com>
* tests/testtreeview.c (gtk_tree_model_types_get_type):
We no longer need to create the signals here ... they
come from the interface.
* gtk/maketypes.awk: Use GType, not GtkType in output.
* gtk/gtktypeutils.h: Mark virtually all of this
file deprecated.
* gtk/gtkcontainer.h: Deprecate gtk_container_foreach_full;
the only use of this function is the GtkArg using
GtkCallbackMarshal, since destroy notification is
silly here.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/testtreeview.c | 63 |
1 files changed, 1 insertions, 62 deletions
diff --git a/tests/testtreeview.c b/tests/testtreeview.c index 43bedfcfb..5509537e4 100644 --- a/tests/testtreeview.c +++ b/tests/testtreeview.c @@ -767,17 +767,7 @@ main (int argc, * GtkTreeModelTypes */ -enum { - CHANGED, - INSERTED, - CHILD_TOGGLED, - DELETED, - - LAST_SIGNAL -}; - static void gtk_tree_model_types_init (GtkTreeModelTypes *model_types); -static void gtk_tree_model_types_class_init (GtkTreeModelTypesClass *class); static void gtk_tree_model_types_tree_model_init (GtkTreeModelIface *iface); static gint gtk_real_model_types_get_n_columns (GtkTreeModel *tree_model); static GType gtk_real_model_types_get_column_type (GtkTreeModel *tree_model, @@ -806,9 +796,6 @@ static gboolean gtk_real_model_types_iter_parent (GtkTreeModel *t GtkTreeIter *child); -static guint model_types_signals[LAST_SIGNAL] = { 0 }; - - GtkType gtk_tree_model_types_get_type (void) { @@ -821,7 +808,7 @@ gtk_tree_model_types_get_type (void) sizeof (GtkTreeModelTypesClass), NULL, /* base_init */ NULL, /* base_finalize */ - (GClassInitFunc) gtk_tree_model_types_class_init, + NULL, /* class_init */ NULL, /* class_finalize */ NULL, /* class_data */ sizeof (GtkTreeModelTypes), @@ -856,54 +843,6 @@ gtk_tree_model_types_new (void) } static void -gtk_tree_model_types_class_init (GtkTreeModelTypesClass *class) -{ - GObjectClass *object_class; - - object_class = (GObjectClass*) class; - - model_types_signals[CHANGED] = - g_signal_new ("changed", - GTK_CLASS_TYPE (object_class), - G_SIGNAL_RUN_FIRST, - GTK_SIGNAL_OFFSET (GtkTreeModelTypesClass, changed), - NULL, NULL, - gtk_marshal_VOID__BOXED_BOXED, - G_TYPE_NONE, 2, - G_TYPE_POINTER, - G_TYPE_POINTER); - model_types_signals[INSERTED] = - g_signal_new ("inserted", - GTK_CLASS_TYPE (object_class), - G_SIGNAL_RUN_FIRST, - GTK_SIGNAL_OFFSET (GtkTreeModelTypesClass, inserted), - NULL, NULL, - gtk_marshal_VOID__BOXED_BOXED, - G_TYPE_NONE, 2, - G_TYPE_POINTER, - G_TYPE_POINTER); - model_types_signals[CHILD_TOGGLED] = - g_signal_new ("child_toggled", - GTK_CLASS_TYPE (object_class), - G_SIGNAL_RUN_FIRST, - GTK_SIGNAL_OFFSET (GtkTreeModelTypesClass, child_toggled), - NULL, NULL, - gtk_marshal_VOID__BOXED_BOXED, - G_TYPE_NONE, 2, - G_TYPE_POINTER, - G_TYPE_POINTER); - model_types_signals[DELETED] = - g_signal_new ("deleted", - GTK_CLASS_TYPE (object_class), - G_SIGNAL_RUN_FIRST, - GTK_SIGNAL_OFFSET (GtkTreeModelTypesClass, deleted), - NULL, NULL, - gtk_marshal_VOID__BOXED, - G_TYPE_NONE, 1, - G_TYPE_POINTER); -} - -static void gtk_tree_model_types_tree_model_init (GtkTreeModelIface *iface) { iface->get_n_columns = gtk_real_model_types_get_n_columns; |