summaryrefslogtreecommitdiff
path: root/gtk/gtkarrow.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/gtkarrow.c
parent33cddd12d78abb2efe6facba9c859017f8df9819 (diff)
downloadgdk-pixbuf-f26aad1916445d25c99878138dfc384de67a2060.tar.gz
Boilerplate reduction
Diffstat (limited to 'gtk/gtkarrow.c')
-rw-r--r--gtk/gtkarrow.c27
1 files changed, 1 insertions, 26 deletions
diff --git a/gtk/gtkarrow.c b/gtk/gtkarrow.c
index 6635816df..f72f85d39 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)