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/gtkvscrollbar.c | |
parent | 33cddd12d78abb2efe6facba9c859017f8df9819 (diff) | |
download | gtk+-f26aad1916445d25c99878138dfc384de67a2060.tar.gz |
Boilerplate reduction
Diffstat (limited to 'gtk/gtkvscrollbar.c')
-rw-r--r-- | gtk/gtkvscrollbar.c | 31 |
1 files changed, 1 insertions, 30 deletions
diff --git a/gtk/gtkvscrollbar.c b/gtk/gtkvscrollbar.c index 071fc1f3fa..e4c2a0839f 100644 --- a/gtk/gtkvscrollbar.c +++ b/gtk/gtkvscrollbar.c @@ -31,36 +31,7 @@ #include "gtkintl.h" #include "gtkalias.h" -static void gtk_vscrollbar_class_init (GtkVScrollbarClass *klass); -static void gtk_vscrollbar_init (GtkVScrollbar *vscrollbar); - -GType -gtk_vscrollbar_get_type (void) -{ - static GType vscrollbar_type = 0; - - if (!vscrollbar_type) - { - static const GTypeInfo vscrollbar_info = - { - sizeof (GtkVScrollbarClass), - NULL, /* base_init */ - NULL, /* base_finalize */ - (GClassInitFunc) gtk_vscrollbar_class_init, - NULL, /* class_finalize */ - NULL, /* class_data */ - sizeof (GtkVScrollbar), - 0, /* n_preallocs */ - (GInstanceInitFunc) gtk_vscrollbar_init, - }; - - vscrollbar_type = - g_type_register_static (GTK_TYPE_SCROLLBAR, I_("GtkVScrollbar"), - &vscrollbar_info, 0); - } - - return vscrollbar_type; -} +G_DEFINE_TYPE (GtkVScrollbar, gtk_vscrollbar, GTK_TYPE_SCROLLBAR); static void gtk_vscrollbar_class_init (GtkVScrollbarClass *class) |