diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-07-03 00:09:28 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-07-06 04:40:49 +0800 |
commit | 6db972ab0fd2f223aea07c6a413d39a01c41152b (patch) | |
tree | a2901db1062e6c72c82aeacec802faeed40206ae /addressbook | |
parent | c361af739614d5a4bdc90741128bb25c0907e015 (diff) | |
download | gsoc2013-evolution-6db972ab0fd2f223aea07c6a413d39a01c41152b.tar.gz gsoc2013-evolution-6db972ab0fd2f223aea07c6a413d39a01c41152b.tar.zst gsoc2013-evolution-6db972ab0fd2f223aea07c6a413d39a01c41152b.zip |
GalView-related cleanups.
Diffstat (limited to 'addressbook')
-rw-r--r-- | addressbook/gui/widgets/gal-view-minicard.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/addressbook/gui/widgets/gal-view-minicard.c b/addressbook/gui/widgets/gal-view-minicard.c index fcc99b3395..61cd1444ac 100644 --- a/addressbook/gui/widgets/gal-view-minicard.c +++ b/addressbook/gui/widgets/gal-view-minicard.c @@ -141,15 +141,16 @@ static GalView * view_minicard_clone (GalView *view) { GalViewMinicard *view_minicard; - GalViewMinicard *clone; + GalView *clone; - view_minicard = GAL_VIEW_MINICARD (view); + /* Chain up to parent's clone() method. */ + clone = GAL_VIEW_CLASS (gal_view_minicard_parent_class)->clone (view); - clone = g_object_new (GAL_TYPE_VIEW_MINICARD, NULL); - clone->column_width = view_minicard->column_width; - clone->title = g_strdup (view_minicard->title); + view_minicard = GAL_VIEW_MINICARD (view); + GAL_VIEW_MINICARD (clone)->column_width = view_minicard->column_width; + GAL_VIEW_MINICARD (clone)->title = g_strdup (view_minicard->title); - return GAL_VIEW (clone); + return clone; } static void @@ -159,7 +160,7 @@ gal_view_minicard_class_init (GalViewMinicardClass *class) GalViewClass *gal_view_class; object_class = G_OBJECT_CLASS (class); - object_class->dispose = view_minicard_finalize; + object_class->finalize = view_minicard_finalize; gal_view_class = GAL_VIEW_CLASS (class); gal_view_class->load = view_minicard_load; |