aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-cal-config.c
diff options
context:
space:
mode:
authorChenthill Palanisamy <pchen@src.gnome.org>2005-12-19 19:23:11 +0800
committerChenthill Palanisamy <pchen@src.gnome.org>2005-12-19 19:23:11 +0800
commitae8d6437906a7ae68c80546c54e1b27b5be3caa5 (patch)
tree3033ca208cc77504c1b6d3cf5917211d8203182a /calendar/gui/e-cal-config.c
parent58245bd32da1d2779a802b16a4e04d9fdae3b348 (diff)
downloadgsoc2013-evolution-ae8d6437906a7ae68c80546c54e1b27b5be3caa5.tar
gsoc2013-evolution-ae8d6437906a7ae68c80546c54e1b27b5be3caa5.tar.gz
gsoc2013-evolution-ae8d6437906a7ae68c80546c54e1b27b5be3caa5.tar.bz2
gsoc2013-evolution-ae8d6437906a7ae68c80546c54e1b27b5be3caa5.tar.lz
gsoc2013-evolution-ae8d6437906a7ae68c80546c54e1b27b5be3caa5.tar.xz
gsoc2013-evolution-ae8d6437906a7ae68c80546c54e1b27b5be3caa5.tar.zst
gsoc2013-evolution-ae8d6437906a7ae68c80546c54e1b27b5be3caa5.zip
Committing the calendar publishing patch.
svn path=/trunk/; revision=30876
Diffstat (limited to 'calendar/gui/e-cal-config.c')
-rw-r--r--calendar/gui/e-cal-config.c24
1 files changed, 24 insertions, 0 deletions
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 },
};