aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-mini-calendar-config.c
diff options
context:
space:
mode:
authorJP Rosevear <jpr@novell.com>2004-10-14 23:36:27 +0800
committerJP Rosevear <jpr@src.gnome.org>2004-10-14 23:36:27 +0800
commit086338bb035c96491b792bd93f65a94d1f236916 (patch)
treebf14d53b366e260b5018646b26d3edbfdee68983 /calendar/gui/e-mini-calendar-config.c
parentd976bf57c403c11f800ad49340466146fd56a6eb (diff)
downloadgsoc2013-evolution-086338bb035c96491b792bd93f65a94d1f236916.tar.gz
gsoc2013-evolution-086338bb035c96491b792bd93f65a94d1f236916.tar.zst
gsoc2013-evolution-086338bb035c96491b792bd93f65a94d1f236916.zip
convert to G_DEFINE_TYPE
2004-10-14 JP Rosevear <jpr@novell.com> * gui/e-cell-date-edit-config.c: convert to G_DEFINE_TYPE * gui/e-cell-date-edit-text.c: ditto * gui/e-comp-editor-registry.c: ditto * gui/e-date-edit-config.c: ditto * gui/e-mini-calendar-config.c: ditto svn path=/trunk/; revision=27583
Diffstat (limited to 'calendar/gui/e-mini-calendar-config.c')
-rw-r--r--calendar/gui/e-mini-calendar-config.c19
1 files changed, 7 insertions, 12 deletions
diff --git a/calendar/gui/e-mini-calendar-config.c b/calendar/gui/e-mini-calendar-config.c
index 2f17b23beb..120f3dba84 100644
--- a/calendar/gui/e-mini-calendar-config.c
+++ b/calendar/gui/e-mini-calendar-config.c
@@ -29,14 +29,14 @@ struct _EMiniCalendarConfigPrivate {
GList *notifications;
};
-static GObjectClass *parent_class = NULL;
-
/* Property IDs */
enum props {
PROP_0,
PROP_CALENDAR
};
+G_DEFINE_TYPE (EMiniCalendarConfig, e_mini_calendar_config, G_TYPE_OBJECT);
+
static void
e_mini_calendar_config_set_property (GObject *object, guint property_id, const GValue *value, GParamSpec *pspec)
{
@@ -85,8 +85,8 @@ e_mini_calendar_config_dispose (GObject *object)
e_mini_calendar_config_set_calendar (mini_config, NULL);
- if (G_OBJECT_CLASS (parent_class)->dispose)
- G_OBJECT_CLASS (parent_class)->dispose (object);
+ if (G_OBJECT_CLASS (e_mini_calendar_config_parent_class)->dispose)
+ G_OBJECT_CLASS (e_mini_calendar_config_parent_class)->dispose (object);
}
static void
@@ -99,8 +99,8 @@ e_mini_calendar_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_mini_calendar_config_parent_class)->finalize)
+ G_OBJECT_CLASS (e_mini_calendar_config_parent_class)->finalize (object);
}
static void
@@ -109,8 +109,6 @@ e_mini_calendar_config_class_init (EMiniCalendarConfigClass *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_mini_calendar_config_set_property;
gobject_class->get_property = e_mini_calendar_config_get_property;
@@ -123,15 +121,12 @@ e_mini_calendar_config_class_init (EMiniCalendarConfigClass *klass)
}
static void
-e_mini_calendar_config_init (EMiniCalendarConfig *mini_config, EMiniCalendarConfigClass *klass)
+e_mini_calendar_config_init (EMiniCalendarConfig *mini_config)
{
mini_config->priv = g_new0 (EMiniCalendarConfigPrivate, 1);
}
-E_MAKE_TYPE (e_mini_calendar_config, "EMiniCalendarConfig", EMiniCalendarConfig, e_mini_calendar_config_class_init,
- e_mini_calendar_config_init, G_TYPE_OBJECT);
-
EMiniCalendarConfig *
e_mini_calendar_config_new (ECalendar *mini_cal)
{