aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-calendar-view.c
diff options
context:
space:
mode:
authorJP Rosevear <jpr@novell.com>2004-10-14 23:22:32 +0800
committerJP Rosevear <jpr@src.gnome.org>2004-10-14 23:22:32 +0800
commit6ff314b9cc64c6a409f61913d40e1e935439a46c (patch)
tree423306d7f315ab72dbc34d9df87657ba6e808af5 /calendar/gui/e-calendar-view.c
parent66152fe6537418489c2186a5e5c269c6e7c81db3 (diff)
downloadgsoc2013-evolution-6ff314b9cc64c6a409f61913d40e1e935439a46c.tar
gsoc2013-evolution-6ff314b9cc64c6a409f61913d40e1e935439a46c.tar.gz
gsoc2013-evolution-6ff314b9cc64c6a409f61913d40e1e935439a46c.tar.bz2
gsoc2013-evolution-6ff314b9cc64c6a409f61913d40e1e935439a46c.tar.lz
gsoc2013-evolution-6ff314b9cc64c6a409f61913d40e1e935439a46c.tar.xz
gsoc2013-evolution-6ff314b9cc64c6a409f61913d40e1e935439a46c.tar.zst
gsoc2013-evolution-6ff314b9cc64c6a409f61913d40e1e935439a46c.zip
convert to G_DEFINE_TYPE
2004-10-14 JP Rosevear <jpr@novell.com> * gui/e-cal-list-view-config.c: convert to G_DEFINE_TYPE * gui/e-cal-list-view.c: ditto * gui/e-cal-model-calendar.c: ditto * gui/e-cal-model-tasks.c: ditto * gui/e-cal-model.c: ditto * gui/e-calendar-table-config.c: ditto * gui/e-calendar-table.c: ditto * gui/e-calendar-view.c: ditto svn path=/trunk/; revision=27580
Diffstat (limited to 'calendar/gui/e-calendar-view.c')
-rw-r--r--calendar/gui/e-calendar-view.c20
1 files changed, 8 insertions, 12 deletions
diff --git a/calendar/gui/e-calendar-view.c b/calendar/gui/e-calendar-view.c
index fea758bc17..2e9ccc33d1 100644
--- a/calendar/gui/e-calendar-view.c
+++ b/calendar/gui/e-calendar-view.c
@@ -21,7 +21,10 @@
* USA
*/
+#ifdef HAVE_CONFIG_H
#include <config.h>
+#endif
+
#include <string.h>
#include <time.h>
#include <gtk/gtkimage.h>
@@ -29,7 +32,6 @@
#include <gdk/gdkkeysyms.h>
#include <gtk/gtkbindings.h>
#include <libgnome/gnome-i18n.h>
-#include <gal/util/e-util.h>
#include <e-util/e-dialog-utils.h>
#include <e-util/e-icon-factory.h>
#include "e-calendar-marshal.h"
@@ -77,13 +79,10 @@ struct _ECalendarViewPrivate {
char *default_category;
};
-static void e_calendar_view_class_init (ECalendarViewClass *klass);
-static void e_calendar_view_init (ECalendarView *cal_view, ECalendarViewClass *klass);
static void e_calendar_view_get_property (GObject *object, guint property_id, GValue *value, GParamSpec *pspec);
static void e_calendar_view_set_property (GObject *object, guint property_id, const GValue *value, GParamSpec *pspec);
static void e_calendar_view_destroy (GtkObject *object);
-static GObjectClass *parent_class = NULL;
static GdkAtom clipboard_atom = GDK_NONE;
extern ECompEditorRegistry *comp_editor_registry;
@@ -108,6 +107,8 @@ enum {
static guint e_calendar_view_signals[LAST_SIGNAL] = { 0 };
+G_DEFINE_TYPE (ECalendarView, e_calendar_view, GTK_TYPE_TABLE);
+
static void
e_calendar_view_set_property (GObject *object, guint property_id, const GValue *value, GParamSpec *pspec)
{
@@ -154,8 +155,6 @@ e_calendar_view_class_init (ECalendarViewClass *klass)
GtkBindingSet *binding_set;
- parent_class = g_type_class_peek_parent (klass);
-
/* Method override */
gobject_class->set_property = e_calendar_view_set_property;
gobject_class->get_property = e_calendar_view_get_property;
@@ -381,7 +380,7 @@ e_calendar_view_add_event (ECalendarView *cal_view, ECal *client, time_t dtstart
}
static void
-e_calendar_view_init (ECalendarView *cal_view, ECalendarViewClass *klass)
+e_calendar_view_init (ECalendarView *cal_view)
{
cal_view->priv = g_new0 (ECalendarViewPrivate, 1);
@@ -413,13 +412,10 @@ e_calendar_view_destroy (GtkObject *object)
cal_view->priv = NULL;
}
- if (GTK_OBJECT_CLASS (parent_class)->destroy)
- GTK_OBJECT_CLASS (parent_class)->destroy (object);
+ if (GTK_OBJECT_CLASS (e_calendar_view_parent_class)->destroy)
+ GTK_OBJECT_CLASS (e_calendar_view_parent_class)->destroy (object);
}
-E_MAKE_TYPE (e_calendar_view, "ECalendarView", ECalendarView, e_calendar_view_class_init,
- e_calendar_view_init, GTK_TYPE_TABLE);
-
GnomeCalendar *
e_calendar_view_get_calendar (ECalendarView *cal_view)
{