From ae8d6437906a7ae68c80546c54e1b27b5be3caa5 Mon Sep 17 00:00:00 2001 From: Chenthill Palanisamy Date: Mon, 19 Dec 2005 11:23:11 +0000 Subject: Committing the calendar publishing patch. svn path=/trunk/; revision=30876 --- calendar/gui/e-cal-config.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'calendar/gui/e-cal-config.c') diff --git a/calendar/gui/e-cal-config.c b/calendar/gui/e-cal-config.c index b243afc844..7c8902677d 100644 --- a/calendar/gui/e-cal-config.c +++ b/calendar/gui/e-cal-config.c @@ -55,6 +55,9 @@ ecp_target_free (EConfig *ec, EConfigTarget *t) p->source_changed_id = 0; } break; } + case EC_CONFIG_TARGET_PREFS: { + /* ECalConfigTargetPrefs *s = (ECalConfigTargetPrefs *)t; */ + break; } } } @@ -64,6 +67,11 @@ ecp_target_free (EConfig *ec, EConfigTarget *t) if (s->source) g_object_unref (s->source); break; } + case EC_CONFIG_TARGET_PREFS: { + ECalConfigTargetPrefs *s = (ECalConfigTargetPrefs *)t; + if (s->gconf) + g_object_unref (s->gconf); + break; } } ((EConfigClass *) ecp_parent_class)->target_free (ec, t); @@ -89,6 +97,9 @@ ecp_set_target (EConfig *ec, EConfigTarget *t) p->source_changed_id = g_signal_connect (s->source, "changed", G_CALLBACK (ecp_source_changed), ec); break; } + case EC_CONFIG_TARGET_PREFS: { + /* ECalConfigTargetPrefs *s = (ECalConfigTargetPrefs *)t; */ + break; } } } } @@ -143,12 +154,25 @@ e_cal_config_target_new_source (ECalConfig *ecp, struct _ESource *source) return t; } +ECalConfigTargetPrefs * +e_cal_config_target_new_prefs (ECalConfig *ecp, struct _GConfClient *gconf) +{ + ECalConfigTargetPrefs *t = e_config_target_new (&ecp->config, EC_CONFIG_TARGET_PREFS, sizeof (*t)); + + t->gconf = gconf; + if (gconf) + g_object_ref (gconf); + + return t; +} + static const EConfigHookTargetMask ecph_no_masks[] = { { 0 } }; static const EConfigHookTargetMap ecph_targets[] = { { "source", EC_CONFIG_TARGET_SOURCE, ecph_no_masks }, + { "prefs", EC_CONFIG_TARGET_PREFS, ecph_no_masks }, { 0 }, }; -- cgit v1.2.3