summaryrefslogtreecommitdiffstats
path: root/sync/src/sync_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'sync/src/sync_main.c')
-rw-r--r--sync/src/sync_main.c22
1 files changed, 7 insertions, 15 deletions
diff --git a/sync/src/sync_main.c b/sync/src/sync_main.c
index 3e21d69..e60d2c1 100644
--- a/sync/src/sync_main.c
+++ b/sync/src/sync_main.c
@@ -198,7 +198,7 @@ sync_item_activated_cb (GtkIconView *iconview, GtkTreePath *arg1,
/* Events SyncML item */
item = sync_syncml_item_new ("Server",
- "http://localhost:8080",
+ "http://localhost:14369",
EVENTS, "", "", "cal");
group = sync_group_new_with_items (
item2, item);
@@ -235,20 +235,14 @@ sync_item_activated_cb (GtkIconView *iconview, GtkTreePath *arg1,
g_object_unref (item);
break;
case TYPE_GCAL:
- path = g_strdup_printf (TEMP_PATH,
- g_getenv ("HOME"));
- item = sync_file_item_new ("Test", path);
- g_free (path);
-
item2 = sync_gcal_item_new ("GCal",
- "user", "password");
+ "username", "password");
group = sync_group_new_with_items (
- item2, item);
+ item2, data->local_item);
sync_collection_add_group (data->collection,
group);
g_object_unref (group);
- g_object_unref (item);
g_object_unref (item2);
break;
default:
@@ -391,12 +385,12 @@ main (int argc, char **argv)
gint width = 0, height = 0;
SyncData data;
SyncItem *server_item;
- gchar *testpath;
gtk_init (&argc, &argv);
glade_init ();
/* g_thread_init (NULL);
gdk_threads_init ();*/
+
/* FIXME: Must be called due to buggy OpenSync */
gconf_client_get_default ();
@@ -432,17 +426,15 @@ main (int argc, char **argv)
/* Create local sync-item and sync collection */
data.collection = sync_collection_new ();
/* Test with a local file store, evo2 plug-in is broken? */
-/* data.local_item = sync_evo2_item_new ("Local", NULL, NULL, NULL);*/
- testpath = g_strdup_printf (TEMP_PATH2, g_getenv ("HOME"));
- data.local_item = sync_file_item_new ("Test2", testpath);
- g_free (testpath);
+ data.local_item = sync_evo2_item_new ("Local", NULL, NULL, NULL);
/* Create and start server */
server_item = sync_syncml_server_item_new ("Server", "", "",
- 8080, "card", "cal", "note");
+ 14369, "card", "cal", "note");
data.server_group = sync_group_new_with_items (
server_item, data.local_item);
g_object_unref (server_item);
+ /* Connect up server sync signals (these don't seem to work?) */
/* TODO: Conflicts? */
g_signal_connect (G_OBJECT (data.server_group), "started",
G_CALLBACK (sync_server_started_cb), &data);