aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/conduits
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2003-11-12 01:03:36 +0800
committerJP Rosevear <jpr@src.gnome.org>2003-11-12 01:03:36 +0800
commit4ea4ea5d280f641bb5f3b6b3d1a8c05960e59bea (patch)
tree7daeb47d2bda5e78b0454ea4640d802d6c2662e2 /calendar/conduits
parentf7cc8f7cbd3e7b83c33fe85b2311895b8d5ee242 (diff)
downloadgsoc2013-evolution-4ea4ea5d280f641bb5f3b6b3d1a8c05960e59bea.tar.gz
gsoc2013-evolution-4ea4ea5d280f641bb5f3b6b3d1a8c05960e59bea.tar.zst
gsoc2013-evolution-4ea4ea5d280f641bb5f3b6b3d1a8c05960e59bea.zip
load the calendar synchronously
2003-11-11 JP Rosevear <jpr@ximian.com> * conduits/todo/todo-conduit.c (start_calendar_server): load the calendar synchronously * conduits/calendar/calendar-conduit.c (start_calendar_server): ditto svn path=/trunk/; revision=23285
Diffstat (limited to 'calendar/conduits')
-rw-r--r--calendar/conduits/calendar/calendar-conduit.c31
-rw-r--r--calendar/conduits/todo/todo-conduit.c32
2 files changed, 2 insertions, 61 deletions
diff --git a/calendar/conduits/calendar/calendar-conduit.c b/calendar/conduits/calendar/calendar-conduit.c
index d028fee56c..47b3755ea5 100644
--- a/calendar/conduits/calendar/calendar-conduit.c
+++ b/calendar/conduits/calendar/calendar-conduit.c
@@ -386,29 +386,10 @@ static char *print_remote (GnomePilotRecord *remote)
return buff;
}
-/* Calendar Server routines */
-static void
-start_calendar_server_cb (ECal *e_cal,
- ECalOpenStatus status,
- gpointer data)
-{
- gboolean *success = data;
-
- if (status == E_CAL_OPEN_SUCCESS) {
- *success = TRUE;
- } else {
- *success = FALSE;
- WARN ("Failed to open calendar!\n");
- }
-
- gtk_main_quit (); /* end the sub event loop */
-}
-
static int
start_calendar_server (ECalConduitContext *ctxt)
{
char *uri;
- gboolean success = FALSE;
g_return_val_if_fail (ctxt != NULL, -2);
@@ -420,21 +401,11 @@ start_calendar_server (ECalConduitContext *ctxt)
if (!ctxt->client)
return -1;
-
- g_signal_connect (ctxt->client, "cal_opened",
- G_CALLBACK (start_calendar_server_cb), &success);
if (!e_cal_open (ctxt->client, FALSE, NULL))
return -1;
- /* run a sub event loop to turn cal-client's async load
- notification into a synchronous call */
- gtk_main ();
-
- if (success)
- return 0;
-
- return -1;
+ return 0;
}
/* Utility routines */
diff --git a/calendar/conduits/todo/todo-conduit.c b/calendar/conduits/todo/todo-conduit.c
index 61a0598a75..fe5684252b 100644
--- a/calendar/conduits/todo/todo-conduit.c
+++ b/calendar/conduits/todo/todo-conduit.c
@@ -392,30 +392,10 @@ static char *print_remote (GnomePilotRecord *remote)
return buff;
}
-
-/* Calendar Server routines */
-static void
-start_calendar_server_cb (ECal *e_cal,
- ECalOpenStatus status,
- gpointer data)
-{
- gboolean *success = data;
-
- if (status == E_CAL_OPEN_SUCCESS) {
- *success = TRUE;
- } else {
- *success = FALSE;
- WARN ("Failed to open calendar!\n");
- }
-
- gtk_main_quit (); /* end the sub event loop */
-}
-
static int
start_calendar_server (EToDoConduitContext *ctxt)
{
char *uri;
- gboolean success = FALSE;
g_return_val_if_fail (ctxt != NULL, -2);
@@ -428,20 +408,10 @@ start_calendar_server (EToDoConduitContext *ctxt)
if (!ctxt->client)
return -1;
- g_signal_connect (ctxt->client, "cal_opened",
- G_CALLBACK (start_calendar_server_cb), &success);
-
if (!e_cal_open (ctxt->client, FALSE, NULL))
return -1;
- /* run a sub event loop to turn cal-client's async load
- notification into a synchronous call */
- gtk_main ();
-
- if (success)
- return 0;
-
- return -1;
+ return 0;
}
/* Utility routines */
.r87113martymac2013-09-137-16/+83 * Add explicit dependency on pkgconf (10 ports)marino2013-09-131-2/+1 * - Revert VNC IPv6 patch because it causes an incompatibility.decke2013-09-132-15/+1 * Add explicit dependency on pkgconf (11 ports)marino2013-09-121-1/+1 * Add explicit dependency on pkgconf (27 ports)marino2013-09-122-2/+2 * - convert to the new perl5 frameworkaz2013-09-121-6/+3 * Add an explicit dependency on pkgconfantoine2013-09-121-6/+2 * Fix build on head after iconv change.madpilot2013-09-111-0/+5 * Add an explicit dependency on pkgconfantoine2013-09-102-5/+3 * - Update to 4.2.18decke2013-09-086-12/+11 * Fix build on head after iconv change.madpilot2013-09-061-0/+3 * Add explicit iconv dependency. The port requires variable ICONV_LIBdecke2013-09-061-1/+1 * Add explicit iconv dependency. The port requires variable ICONV_LIBmadpilot2013-09-061-1/+1 * - Add patch to fix pcnet-pci NIC big endian guests like MIPS Malta: [1]nox2013-09-062-0/+49 * Add an explicit dependency on pkgconfbapt2013-09-051-2/+1 * Fix build with clangbapt2013-09-052-7/+13 * - Make ports use the libc provided iconv implementation on 10-CURRENTmadpilot2013-09-052-1/+4 * Add an explicit dependency on pkgconfbapt2013-09-032-0/+2 * Add an explicit dependency on pkgconfbapt2013-09-031-1/+1 * - Unbreak parallel (-jX) builds by calling sub-makes correctly (via -C)danfe2013-09-031-4/+8 * Add an explicit dependency on pkgconfbapt2013-09-031-7/+2 * Add an explicit dependency on pkgconfbapt2013-09-032-2/+2 * Add an explicit dependency on pkgconfbapt2013-09-031-1/+1 * Two imake related changes:tijl2013-09-021-1/+1 * 1. Introduce using iconv with arguments:bsam2013-09-021-3/+2 * Eliminate USE_GNOME=pkgconfigbapt2013-09-021-4/+2 * Update to Wine 1.7.1. This includes the following changes:gerald2013-08-313-3/+15 * Add an explicit dependency on pkgconfbapt2013-08-311-6/+2 * - Remove bogus conditional IGNORE for PACKAGE_BUILDING; these shouldbdrewery2013-08-291-2/+2 * Make sure the build respect CC, and while here enforce gcc as a compiler as c...bapt2013-08-281-3/+3 * Remove expired ports:rene2013-08-289-204/+0 * - Install an icon and use it in a desktop fileamdmi32013-08-271-3/+4 * emulators/spim: fix packagewg2013-08-231-0/+1 * - Update to 1.6.0 - announce message is here:nox2013-08-2133-23333/+8 * Replace USE_GCC=4.6+ and USE_GCC=4.4+ by USE_GCC=yes.gerald2013-08-18