From 36b2a2ebcd7d64ea2dfcada93eac2a931d4d4b46 Mon Sep 17 00:00:00 2001 From: Tim Janik Date: Fri, 23 Jan 1998 10:38:29 +0000 Subject: [PATCH] new element n_args in GtkObjectClass. -timj --- gtk/gtkobject.c | 1 + gtk/gtkobject.h | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/gtk/gtkobject.c b/gtk/gtkobject.c index 6c6dc338e7..dac34e7dbc 100644 --- a/gtk/gtkobject.c +++ b/gtk/gtkobject.c @@ -134,6 +134,7 @@ gtk_object_class_init (GtkObjectClass *class) { class->signals = NULL; class->nsignals = 0; + class->n_args = 0; gtk_object_add_arg_type ("GtkObject::user_data", GTK_TYPE_POINTER, ARG_USER_DATA); gtk_object_add_arg_type ("GtkObject::signal", GTK_TYPE_SIGNAL, ARG_SIGNAL); diff --git a/gtk/gtkobject.h b/gtk/gtkobject.h index d2e6631707..a7ae98a2a3 100644 --- a/gtk/gtkobject.h +++ b/gtk/gtkobject.h @@ -154,6 +154,10 @@ struct _GtkObjectClass * an example of how to do this). */ void (* destroy) (GtkObject *object); + + /* The number of arguments per class. + */ + guint n_args; };