aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/conduits/todo/todo-conduit-config.h
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/conduits/todo/todo-conduit-config.h')
-rw-r--r--calendar/conduits/todo/todo-conduit-config.h23
1 files changed, 13 insertions, 10 deletions
diff --git a/calendar/conduits/todo/todo-conduit-config.h b/calendar/conduits/todo/todo-conduit-config.h
index ca9f7c9cca..a96168a491 100644
--- a/calendar/conduits/todo/todo-conduit-config.h
+++ b/calendar/conduits/todo/todo-conduit-config.h
@@ -42,6 +42,8 @@ struct _EToDoConduitCfg {
static void
todoconduit_load_configuration (EToDoConduitCfg **c, guint32 pilot_id)
{
+ GnomePilotConduitManagement *management;
+ GnomePilotConduitConfig *config;
gchar prefix[256];
g_snprintf (prefix, 255, "/gnome-pilot.d/e-todo-conduit/Pilot_%u/",
pilot_id);
@@ -49,14 +51,21 @@ todoconduit_load_configuration (EToDoConduitCfg **c, guint32 pilot_id)
*c = g_new0 (EToDoConduitCfg,1);
g_assert (*c != NULL);
+ (*c)->pilot_id = pilot_id;
+
+ management = gnome_pilot_conduit_management_new ("EToDo", GNOME_PILOT_CONDUIT_MGMT_NAME);
+ config = gnome_pilot_conduit_config_new (management, pilot_id);
+ if (!gnome_pilot_conduit_config_is_enabled (config, &(*c)->sync_type))
+ (*c)->sync_type = GnomePilotConduitSyncTypeNotSet;
+ gtk_object_unref (GTK_OBJECT (config));
+ gtk_object_unref (GTK_OBJECT (management));
+
+ /* Custom settings */
gnome_config_push_prefix (prefix);
+
(*c)->open_secret = gnome_config_get_bool ("open_secret=FALSE");
- /* set in capplets main */
- (*c)->sync_type = GnomePilotConduitSyncTypeCustom;
gnome_config_pop_prefix ();
-
- (*c)->pilot_id = pilot_id;
}
#endif
@@ -112,9 +121,3 @@ todoconduit_destroy_configuration (EToDoConduitCfg **c)
#endif /* __TODO_CONDUIT_CONFIG_H__ */
-
-
-
-
-
-