From 23f5773903d64a554d977ae7d0ebbaca73528f1f Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Wed, 30 Nov 2011 20:53:20 -0600 Subject: Coding style and whitespace cleanup. --- addressbook/gui/widgets/gal-view-minicard.c | 31 +++++------------------------ 1 file changed, 5 insertions(+), 26 deletions(-) (limited to 'addressbook/gui/widgets/gal-view-minicard.c') diff --git a/addressbook/gui/widgets/gal-view-minicard.c b/addressbook/gui/widgets/gal-view-minicard.c index 280ae7583f..277866a20c 100644 --- a/addressbook/gui/widgets/gal-view-minicard.c +++ b/addressbook/gui/widgets/gal-view-minicard.c @@ -35,6 +35,11 @@ static gpointer parent_class; +G_DEFINE_TYPE ( + GalViewMinicard, + gal_view_minicard, + GAL_TYPE_VIEW) + static void view_minicard_column_width_changed (EAddressbookView *address_view, gdouble width) @@ -183,32 +188,6 @@ gal_view_minicard_init (GalViewMinicard *gvm) gvm->emvw_column_width_changed_id = 0; } -GType -gal_view_minicard_get_type (void) -{ - static GType type = 0; - - if (G_UNLIKELY (type == 0)) { - static const GTypeInfo type_info = { - sizeof (GalViewMinicardClass), - (GBaseInitFunc) NULL, - (GBaseFinalizeFunc) NULL, - (GClassInitFunc) gal_view_minicard_class_init, - (GClassFinalizeFunc) NULL, - NULL, /* class_data */ - sizeof (GalViewMinicard), - 0, /* n_preallocs */ - (GInstanceInitFunc) gal_view_minicard_init, - NULL /* value_table */ - }; - - type = g_type_register_static ( - GAL_TYPE_VIEW, "GalViewMinicard", &type_info, 0); - } - - return type; -} - /** * gal_view_minicard_new * @title: The name of the new view. -- cgit