aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-week-view-config.c
diff options
context:
space:
mode:
authorJP Rosevear <jpr@novell.com>2004-10-14 22:56:18 +0800
committerJP Rosevear <jpr@src.gnome.org>2004-10-14 22:56:18 +0800
commit979feab18eb378b4623f2edc6a357407e95e3493 (patch)
tree7435a2f2555cba759b1cdd2a0685b51c34679f2e /calendar/gui/e-week-view-config.c
parent05b60f793cc6d7dff47b5980487f7ee1248d8f08 (diff)
downloadgsoc2013-evolution-979feab18eb378b4623f2edc6a357407e95e3493.tar.gz
gsoc2013-evolution-979feab18eb378b4623f2edc6a357407e95e3493.tar.zst
gsoc2013-evolution-979feab18eb378b4623f2edc6a357407e95e3493.zip
convert to G_DEFINE_TYPE
2004-10-14 JP Rosevear <jpr@novell.com> * gui/e-week-view-config.c: convert to G_DEFINE_TYPE * gui/e-week-view-event-item.c: ditto * gui/e-week-view-main-item.c: ditto * gui/e-week-view-titles-item.c: ditto * gui/e-week-view.c: ditto svn path=/trunk/; revision=27578
Diffstat (limited to 'calendar/gui/e-week-view-config.c')
-rw-r--r--calendar/gui/e-week-view-config.c19
1 files changed, 7 insertions, 12 deletions
diff --git a/calendar/gui/e-week-view-config.c b/calendar/gui/e-week-view-config.c
index 21a1eca5c7..e93f44373e 100644
--- a/calendar/gui/e-week-view-config.c
+++ b/calendar/gui/e-week-view-config.c
@@ -30,14 +30,14 @@ struct _EWeekViewConfigPrivate {
GList *notifications;
};
-static GObjectClass *parent_class = NULL;
-
/* Property IDs */
enum props {
PROP_0,
PROP_VIEW,
};
+G_DEFINE_TYPE (EWeekViewConfig, e_week_view_config, G_TYPE_OBJECT);
+
static void
e_week_view_config_set_property (GObject *object, guint property_id, const GValue *value, GParamSpec *pspec)
{
@@ -86,8 +86,8 @@ e_week_view_config_dispose (GObject *object)
e_week_view_config_set_view (view_config, NULL);
- if (G_OBJECT_CLASS (parent_class)->dispose)
- G_OBJECT_CLASS (parent_class)->dispose (object);
+ if (G_OBJECT_CLASS (e_week_view_config_parent_class)->dispose)
+ G_OBJECT_CLASS (e_week_view_config_parent_class)->dispose (object);
}
static void
@@ -100,8 +100,8 @@ e_week_view_config_finalize (GObject *object)
g_free (priv);
- if (G_OBJECT_CLASS (parent_class)->finalize)
- G_OBJECT_CLASS (parent_class)->finalize (object);
+ if (G_OBJECT_CLASS (e_week_view_config_parent_class)->finalize)
+ G_OBJECT_CLASS (e_week_view_config_parent_class)->finalize (object);
}
static void
@@ -110,8 +110,6 @@ e_week_view_config_class_init (EWeekViewConfigClass *klass)
GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
GParamSpec *spec;
- parent_class = g_type_class_peek_parent (klass);
-
/* Method override */
gobject_class->set_property = e_week_view_config_set_property;
gobject_class->get_property = e_week_view_config_get_property;
@@ -124,15 +122,12 @@ e_week_view_config_class_init (EWeekViewConfigClass *klass)
}
static void
-e_week_view_config_init (EWeekViewConfig *view_config, EWeekViewConfigClass *klass)
+e_week_view_config_init (EWeekViewConfig *view_config)
{
view_config->priv = g_new0 (EWeekViewConfigPrivate, 1);
}
-E_MAKE_TYPE (e_week_view_config, "EWeekViewConfig", EWeekViewConfig, e_week_view_config_class_init,
- e_week_view_config_init, G_TYPE_OBJECT);
-
EWeekViewConfig *
e_week_view_config_new (EWeekView *week_view)
{