diff options
author | JP Rosevear <jpr@novell.com> | 2004-10-14 23:02:32 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2004-10-14 23:02:32 +0800 |
commit | 66152fe6537418489c2186a5e5c269c6e7c81db3 (patch) | |
tree | 8e65d0de151e07adb43a67c77a4e85c15d004bab /calendar/gui/calendar-view-factory.c | |
parent | 979feab18eb378b4623f2edc6a357407e95e3493 (diff) | |
download | gsoc2013-evolution-66152fe6537418489c2186a5e5c269c6e7c81db3.tar gsoc2013-evolution-66152fe6537418489c2186a5e5c269c6e7c81db3.tar.gz gsoc2013-evolution-66152fe6537418489c2186a5e5c269c6e7c81db3.tar.bz2 gsoc2013-evolution-66152fe6537418489c2186a5e5c269c6e7c81db3.tar.lz gsoc2013-evolution-66152fe6537418489c2186a5e5c269c6e7c81db3.tar.xz gsoc2013-evolution-66152fe6537418489c2186a5e5c269c6e7c81db3.tar.zst gsoc2013-evolution-66152fe6537418489c2186a5e5c269c6e7c81db3.zip |
convert to G_DEFINE_TYPE
2004-10-14 JP Rosevear <jpr@novell.com>
* gui/calendar-view.c: convert to G_DEFINE_TYPE
* gui/calendar-view-factory.c: ditto
* gui/cal-search-bar.c: ditto
* gui/e-cal-component-preview.c: ditto
svn path=/trunk/; revision=27579
Diffstat (limited to 'calendar/gui/calendar-view-factory.c')
-rw-r--r-- | calendar/gui/calendar-view-factory.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/calendar/gui/calendar-view-factory.c b/calendar/gui/calendar-view-factory.c index f8d2d92ce3..2fced5476c 100644 --- a/calendar/gui/calendar-view-factory.c +++ b/calendar/gui/calendar-view-factory.c @@ -37,20 +37,13 @@ struct _CalendarViewFactoryPrivate { -static void calendar_view_factory_class_init (CalendarViewFactoryClass *class); -static void calendar_view_factory_init (CalendarViewFactory *cal_view_factory); static void calendar_view_factory_finalize (GObject *object); static const char *calendar_view_factory_get_title (GalViewFactory *factory); static const char *calendar_view_factory_get_type_code (GalViewFactory *factory); static GalView *calendar_view_factory_new_view (GalViewFactory *factory, const char *name); -static GalViewFactoryClass *parent_class = NULL; - - - -E_MAKE_TYPE (calendar_view_factory, "CalendarViewFactory", CalendarViewFactory, - calendar_view_factory_class_init, calendar_view_factory_init, GAL_VIEW_FACTORY_TYPE); +G_DEFINE_TYPE (CalendarViewFactory, calendar_view_factory, GAL_VIEW_FACTORY_TYPE); /* Class initialization function for the calendar view factory */ static void @@ -59,8 +52,6 @@ calendar_view_factory_class_init (CalendarViewFactoryClass *class) GalViewFactoryClass *gal_view_factory_class; GObjectClass *gobject_class; - parent_class = g_type_class_peek_parent (class); - gal_view_factory_class = (GalViewFactoryClass *) class; gobject_class = (GObjectClass *) class; @@ -97,8 +88,8 @@ calendar_view_factory_finalize (GObject *object) g_free (priv); cal_view_factory->priv = NULL; - if (G_OBJECT_CLASS (parent_class)->finalize) - (* G_OBJECT_CLASS (parent_class)->finalize) (object); + if (G_OBJECT_CLASS (calendar_view_factory_parent_class)->finalize) + (* G_OBJECT_CLASS (calendar_view_factory_parent_class)->finalize) (object); } |