diff options
author | Matthias Clasen <matthiasc@src.gnome.org> | 2006-05-02 23:56:43 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2006-05-02 23:56:43 +0000 |
commit | f26aad1916445d25c99878138dfc384de67a2060 (patch) | |
tree | b72263ecb326e82a49f1e8d1871ec4288b8aa299 /gtk/gtkarrow.c | |
parent | 33cddd12d78abb2efe6facba9c859017f8df9819 (diff) | |
download | gtk+-f26aad1916445d25c99878138dfc384de67a2060.tar.gz |
Boilerplate reduction
Diffstat (limited to 'gtk/gtkarrow.c')
-rw-r--r-- | gtk/gtkarrow.c | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/gtk/gtkarrow.c b/gtk/gtkarrow.c index 6635816df2..f72f85d393 100644 --- a/gtk/gtkarrow.c +++ b/gtk/gtkarrow.c @@ -43,8 +43,6 @@ enum { }; -static void gtk_arrow_class_init (GtkArrowClass *klass); -static void gtk_arrow_init (GtkArrow *arrow); static gint gtk_arrow_expose (GtkWidget *widget, GdkEventExpose *event); static void gtk_arrow_set_property (GObject *object, @@ -56,32 +54,9 @@ static void gtk_arrow_get_property (GObject *object, GValue *value, GParamSpec *pspec); -GType -gtk_arrow_get_type (void) -{ - static GType arrow_type = 0; - if (!arrow_type) - { - static const GTypeInfo arrow_info = - { - sizeof (GtkArrowClass), - NULL, /* base_init */ - NULL, /* base_finalize */ - (GClassInitFunc) gtk_arrow_class_init, - NULL, /* class_finalize */ - NULL, /* class_data */ - sizeof (GtkArrow), - 0, /* n_preallocs */ - (GInstanceInitFunc) gtk_arrow_init, - }; - - arrow_type = g_type_register_static (GTK_TYPE_MISC, I_("GtkArrow"), - &arrow_info, 0); - } +G_DEFINE_TYPE (GtkArrow, gtk_arrow, GTK_TYPE_MISC); - return arrow_type; -} static void gtk_arrow_class_init (GtkArrowClass *class) |