From 57a3b819e1b849db7b2e76bcbad84bd551cdd55e Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Tue, 2 Jul 2013 15:43:03 -0400 Subject: GalViewClass: Replace get_type_code() with "type_code" string. All GalView subclasses return a static string in their get_type_code() methods, so replace the method with a static string pointer directly in the class structure, and remove the "type-code" GalView property. --- addressbook/gui/widgets/gal-view-minicard.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'addressbook/gui') diff --git a/addressbook/gui/widgets/gal-view-minicard.c b/addressbook/gui/widgets/gal-view-minicard.c index 9abf8124c4..99e8686675 100644 --- a/addressbook/gui/widgets/gal-view-minicard.c +++ b/addressbook/gui/widgets/gal-view-minicard.c @@ -105,12 +105,6 @@ view_minicard_save (GalView *view, xmlFreeDoc (doc); } -static const gchar * -view_minicard_get_type_code (GalView *view) -{ - return "minicard"; -} - static GalView * view_minicard_clone (GalView *view) { @@ -136,9 +130,9 @@ gal_view_minicard_class_init (GalViewMinicardClass *class) object_class->finalize = view_minicard_finalize; gal_view_class = GAL_VIEW_CLASS (class); + gal_view_class->type_code = "minicard"; gal_view_class->load = view_minicard_load; gal_view_class->save = view_minicard_save; - gal_view_class->get_type_code = view_minicard_get_type_code; gal_view_class->clone = view_minicard_clone; } -- cgit v1.2.3