aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/calendar-view.c
diff options
context:
space:
mode:
authorJP Rosevear <jpr@novell.com>2004-10-14 23:02:32 +0800
committerJP Rosevear <jpr@src.gnome.org>2004-10-14 23:02:32 +0800
commit66152fe6537418489c2186a5e5c269c6e7c81db3 (patch)
tree8e65d0de151e07adb43a67c77a4e85c15d004bab /calendar/gui/calendar-view.c
parent979feab18eb378b4623f2edc6a357407e95e3493 (diff)
downloadgsoc2013-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.c')
-rw-r--r--calendar/gui/calendar-view.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/calendar/gui/calendar-view.c b/calendar/gui/calendar-view.c
index 34fd98e676..bf199c49a0 100644
--- a/calendar/gui/calendar-view.c
+++ b/calendar/gui/calendar-view.c
@@ -37,8 +37,6 @@ struct _CalendarViewPrivate {
-static void calendar_view_class_init (CalendarViewClass *class);
-static void calendar_view_init (CalendarView *cview);
static void calendar_view_finalize (GObject *object);
static void calendar_view_edit (GalView *view, GtkWindow *parent_window);
@@ -49,12 +47,7 @@ static void calendar_view_set_title (GalView *view, const char *title);
static const char *calendar_view_get_type_code (GalView *view);
static GalView *calendar_view_clone (GalView *view);
-static GalViewClass *parent_class = NULL;
-
-
-
-E_MAKE_TYPE (calendar_view, "CalendarView", CalendarView, calendar_view_class_init,
- calendar_view_init, GAL_VIEW_TYPE);
+G_DEFINE_TYPE (CalendarView, calendar_view, GAL_VIEW_TYPE);
/* Class initialization function for the calendar view */
static void
@@ -63,8 +56,6 @@ calendar_view_class_init (CalendarViewClass *class)
GalViewClass *gal_view_class;
GObjectClass *object_class;
- parent_class = g_type_class_peek_parent (class);
-
gal_view_class = (GalViewClass *) class;
object_class = (GObjectClass *) class;
@@ -112,8 +103,8 @@ calendar_view_finalize (GObject *object)
g_free (priv);
cal_view->priv = NULL;
- if (G_OBJECT_CLASS (parent_class)->finalize)
- (* G_OBJECT_CLASS (parent_class)->finalize) (object);
+ if (G_OBJECT_CLASS (calendar_view_parent_class)->finalize)
+ (* G_OBJECT_CLASS (calendar_view_parent_class)->finalize) (object);
}