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/gtkclipboard.c | |
parent | 33cddd12d78abb2efe6facba9c859017f8df9819 (diff) | |
download | gtk+-f26aad1916445d25c99878138dfc384de67a2060.tar.gz |
Boilerplate reduction
Diffstat (limited to 'gtk/gtkclipboard.c')
-rw-r--r-- | gtk/gtkclipboard.c | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/gtk/gtkclipboard.c b/gtk/gtkclipboard.c index 8eceb1dd8b..3e501294e7 100644 --- a/gtk/gtkclipboard.c +++ b/gtk/gtkclipboard.c @@ -158,23 +158,12 @@ gtk_clipboard_get_type (void) static GType clipboard_type = 0; if (!clipboard_type) - { - static const GTypeInfo clipboard_info = - { - sizeof (GtkClipboardClass), - NULL, /* base_init */ - NULL, /* base_finalize */ - (GClassInitFunc) gtk_clipboard_class_init, - NULL, /* class_finalize */ - NULL, /* class_data */ - sizeof (GtkClipboard), - 0, /* n_preallocs */ - (GInstanceInitFunc) NULL, - }; - - clipboard_type = g_type_register_static (G_TYPE_OBJECT, I_("GtkClipboard"), - &clipboard_info, 0); - } + clipboard_type = g_type_register_static_simple (G_TYPE_OBJECT, + I_("GtkClipboard"), + sizeof (GtkClipboardClass), + (GClassInitFunc)gtk_clipboard_class_init, + sizeof (GtkClipboard), + NULL, 0); return clipboard_type; } |