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/gtkbbox.c | |
parent | 33cddd12d78abb2efe6facba9c859017f8df9819 (diff) | |
download | gtk+-f26aad1916445d25c99878138dfc384de67a2060.tar.gz |
Boilerplate reduction
Diffstat (limited to 'gtk/gtkbbox.c')
-rw-r--r-- | gtk/gtkbbox.c | 31 |
1 files changed, 1 insertions, 30 deletions
diff --git a/gtk/gtkbbox.c b/gtk/gtkbbox.c index f30656a773..38a57dbb97 100644 --- a/gtk/gtkbbox.c +++ b/gtk/gtkbbox.c @@ -41,8 +41,6 @@ enum { CHILD_PROP_SECONDARY }; -static void gtk_button_box_class_init (GtkButtonBoxClass *klass); -static void gtk_button_box_init (GtkButtonBox *box); static void gtk_button_box_set_property (GObject *object, guint prop_id, const GValue *value, @@ -67,34 +65,7 @@ static void gtk_button_box_get_child_property (GtkContainer *container, #define DEFAULT_CHILD_IPAD_X 4 #define DEFAULT_CHILD_IPAD_Y 0 -GType -gtk_button_box_get_type (void) -{ - static GType button_box_type = 0; - - if (!button_box_type) - { - static const GTypeInfo button_box_info = - { - sizeof (GtkButtonBoxClass), - NULL, /* base_init */ - NULL, /* base_finalize */ - (GClassInitFunc) gtk_button_box_class_init, - NULL, /* class_finalize */ - NULL, /* class_data */ - sizeof (GtkButtonBox), - 0, /* n_preallocs */ - (GInstanceInitFunc) gtk_button_box_init, - NULL, /* value_table */ - }; - - button_box_type = - g_type_register_static (GTK_TYPE_BOX, I_("GtkButtonBox"), - &button_box_info, G_TYPE_FLAG_ABSTRACT); - } - - return button_box_type; -} +G_DEFINE_ABSTRACT_TYPE (GtkButtonBox, gtk_button_box, GTK_TYPE_BOX); static void gtk_button_box_class_init (GtkButtonBoxClass *class) |