diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-07-03 03:43:03 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-07-06 04:40:49 +0800 |
commit | 57a3b819e1b849db7b2e76bcbad84bd551cdd55e (patch) | |
tree | 4084fff5f45bde552a798f49f4d234f5a0b7dd49 /addressbook/gui | |
parent | 3f5f362e0df717f2aaca8d21c3b3e180904a6897 (diff) | |
download | gsoc2013-evolution-57a3b819e1b849db7b2e76bcbad84bd551cdd55e.tar gsoc2013-evolution-57a3b819e1b849db7b2e76bcbad84bd551cdd55e.tar.gz gsoc2013-evolution-57a3b819e1b849db7b2e76bcbad84bd551cdd55e.tar.bz2 gsoc2013-evolution-57a3b819e1b849db7b2e76bcbad84bd551cdd55e.tar.lz gsoc2013-evolution-57a3b819e1b849db7b2e76bcbad84bd551cdd55e.tar.xz gsoc2013-evolution-57a3b819e1b849db7b2e76bcbad84bd551cdd55e.tar.zst gsoc2013-evolution-57a3b819e1b849db7b2e76bcbad84bd551cdd55e.zip |
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.
Diffstat (limited to 'addressbook/gui')
-rw-r--r-- | addressbook/gui/widgets/gal-view-minicard.c | 8 |
1 files changed, 1 insertions, 7 deletions
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; } |