aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-cal-view.c
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@ximian.com>2003-07-17 20:00:40 +0800
committerRodrigo Moya <rodrigo@src.gnome.org>2003-07-17 20:00:40 +0800
commitce6939b848eb228ec705aac4c8de6cfec16ecd10 (patch)
tree045f620b4d4c22352cba5568b697c688ed8c5a10 /calendar/gui/e-cal-view.c
parente05eb7f89e180a734a07ee6576f56b8bfa84fc17 (diff)
downloadgsoc2013-evolution-ce6939b848eb228ec705aac4c8de6cfec16ecd10.tar.gz
gsoc2013-evolution-ce6939b848eb228ec705aac4c8de6cfec16ecd10.tar.zst
gsoc2013-evolution-ce6939b848eb228ec705aac4c8de6cfec16ecd10.zip
new base class for calendar views.
2003-07-17 Rodrigo Moya <rodrigo@ximian.com> * gui/e-cal-view.[ch]: new base class for calendar views. * gui/e-day-view.[ch]: * gui/e-week-view.[ch]: base these classes on ECalView. * gui/Makefile.am: added new files. svn path=/trunk/; revision=21854
Diffstat (limited to 'calendar/gui/e-cal-view.c')
-rw-r--r--calendar/gui/e-cal-view.c70
1 files changed, 70 insertions, 0 deletions
diff --git a/calendar/gui/e-cal-view.c b/calendar/gui/e-cal-view.c
new file mode 100644
index 0000000000..af2223bbff
--- /dev/null
+++ b/calendar/gui/e-cal-view.c
@@ -0,0 +1,70 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
+
+/*
+ * Author :
+ * Rodrigo Moya <rodrigo@ximian.com>
+ *
+ * Copyright 2003, Ximian, Inc.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of version 2 of the GNU General Public
+ * License as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
+ * USA
+ */
+
+#include <config.h>
+#include <gal/util/e-util.h>
+#include "e-cal-view.h"
+
+struct _ECalViewPrivate {
+};
+
+static void e_cal_view_class_init (ECalViewClass *klass);
+static void e_cal_view_init (ECalView *cal_view, ECalViewClass *klass);
+static void e_cal_view_destroy (GtkObject *object);
+
+static GObjectClass *parent_class = NULL;
+
+static void
+e_cal_view_class_init (ECalViewClass *klass)
+{
+ GtkObjectClass *object_class = GTK_OBJECT_CLASS (klass);
+
+ parent_class = g_type_class_peek_parent (klass);
+
+ object_class->destroy = e_cal_view_destroy;
+}
+
+static void
+e_cal_view_init (ECalView *cal_view, ECalViewClass *klass)
+{
+ cal_view->priv = g_new0 (ECalViewPrivate, 1);
+}
+
+static void
+e_cal_view_destroy (GtkObject *object)
+{
+ ECalView *cal_view = (ECalView *) object;
+
+ g_return_if_fail (E_IS_CAL_VIEW (cal_view));
+
+ if (cal_view->priv) {
+ g_free (cal_view->priv);
+ cal_view->priv = NULL;
+ }
+
+ if (GTK_OBJECT_CLASS (parent_class)->destroy)
+ GTK_OBJECT_CLASS (parent_class)->destroy (object);
+}
+
+E_MAKE_TYPE (e_cal_view, "ECalView", ECalView, e_cal_view_class_init,
+ e_cal_view_init, GTK_TYPE_TABLE);