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/gtkmenubar.c | |
parent | 33cddd12d78abb2efe6facba9c859017f8df9819 (diff) | |
download | gtk+-f26aad1916445d25c99878138dfc384de67a2060.tar.gz |
Boilerplate reduction
Diffstat (limited to 'gtk/gtkmenubar.c')
-rw-r--r-- | gtk/gtkmenubar.c | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/gtk/gtkmenubar.c b/gtk/gtkmenubar.c index 402d7a5856..5df2c725e4 100644 --- a/gtk/gtkmenubar.c +++ b/gtk/gtkmenubar.c @@ -95,23 +95,12 @@ gtk_menu_bar_get_type (void) static GType menu_bar_type = 0; if (!menu_bar_type) - { - static const GTypeInfo menu_bar_info = - { - sizeof (GtkMenuBarClass), - NULL, /* base_init */ - NULL, /* base_finalize */ - (GClassInitFunc) gtk_menu_bar_class_init, - NULL, /* class_finalize */ - NULL, /* class_data */ - sizeof (GtkMenuBar), - 0, /* n_preallocs */ - NULL, /* instance_init */ - }; - - menu_bar_type = g_type_register_static (GTK_TYPE_MENU_SHELL, I_("GtkMenuBar"), - &menu_bar_info, 0); - } + menu_bar_type = g_type_register_static_simple (GTK_TYPE_MENU_SHELL, + I_("GtkMenuBar"), + sizeof (GtkMenuBarClass), + gtk_menu_bar_class_init, + sizeof (GtkMenuBar), + NULL, 0); return menu_bar_type; } |