summaryrefslogtreecommitdiff
path: root/gtk/gtkvseparator.c
diff options
context:
space:
mode:
authorMatthias Clasen <matthiasc@src.gnome.org>2006-05-02 23:56:43 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2006-05-02 23:56:43 +0000
commitf26aad1916445d25c99878138dfc384de67a2060 (patch)
treeb72263ecb326e82a49f1e8d1871ec4288b8aa299 /gtk/gtkvseparator.c
parent33cddd12d78abb2efe6facba9c859017f8df9819 (diff)
downloadgtk+-f26aad1916445d25c99878138dfc384de67a2060.tar.gz
Boilerplate reduction
Diffstat (limited to 'gtk/gtkvseparator.c')
-rw-r--r--gtk/gtkvseparator.c30
1 files changed, 1 insertions, 29 deletions
diff --git a/gtk/gtkvseparator.c b/gtk/gtkvseparator.c
index eca00ef48b..800321a6d2 100644
--- a/gtk/gtkvseparator.c
+++ b/gtk/gtkvseparator.c
@@ -30,41 +30,13 @@
#include "gtkalias.h"
-static void gtk_vseparator_class_init (GtkVSeparatorClass *klass);
-static void gtk_vseparator_init (GtkVSeparator *vseparator);
static void gtk_vseparator_size_request (GtkWidget *widget,
GtkRequisition *requisition);
static gint gtk_vseparator_expose (GtkWidget *widget,
GdkEventExpose *event);
-GType
-gtk_vseparator_get_type (void)
-{
- static GType vseparator_type = 0;
-
- if (!vseparator_type)
- {
- static const GTypeInfo vseparator_info =
- {
- sizeof (GtkVSeparatorClass),
- NULL, /* base_init */
- NULL, /* base_finalize */
- (GClassInitFunc) gtk_vseparator_class_init,
- NULL, /* class_finalize */
- NULL, /* class_init */
- sizeof (GtkVSeparator),
- 0, /* n_preallocs */
- (GInstanceInitFunc) gtk_vseparator_init,
- };
-
- vseparator_type =
- g_type_register_static (GTK_TYPE_SEPARATOR, I_("GtkVSeparator"),
- &vseparator_info, 0);
- }
-
- return vseparator_type;
-}
+G_DEFINE_TYPE (GtkVSeparator, gtk_vseparator, GTK_TYPE_SEPARATOR);
static void
gtk_vseparator_class_init (GtkVSeparatorClass *klass)