aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/cal-client/client-test.c
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@helixcode.com>2000-04-25 09:39:05 +0800
committerFederico Mena Quintero <federico@src.gnome.org>2000-04-25 09:39:05 +0800
commit1b7d0bc8c2fba515fc9880c4bc56d0771e611617 (patch)
tree22e9b9193c1c4cc7073a371f455cc4f9e103a220 /calendar/cal-client/client-test.c
parentde46951fcff85cff53fec4bae4d04772f20ef854 (diff)
downloadgsoc2013-evolution-1b7d0bc8c2fba515fc9880c4bc56d0771e611617.tar.gz
gsoc2013-evolution-1b7d0bc8c2fba515fc9880c4bc56d0771e611617.tar.zst
gsoc2013-evolution-1b7d0bc8c2fba515fc9880c4bc56d0771e611617.zip
The path to the test calendar changed when we moved stuff around. Users
2000-04-24 Federico Mena Quintero <federico@helixcode.com> * cal-client/client-test.c (main): The path to the test calendar changed when we moved stuff around. Users will have to tweak this for their CVS setup, anyways. (create_client): Create or load the calendar as appropriate. (client_destroy_cb): Exit the main loop if both clients are gone. (main): Connect to the "destroy" signal of the clients so that we can terminate the test program. svn path=/trunk/; revision=2597
Diffstat (limited to 'calendar/cal-client/client-test.c')
-rw-r--r--calendar/cal-client/client-test.c33
1 files changed, 28 insertions, 5 deletions
diff --git a/calendar/cal-client/client-test.c b/calendar/cal-client/client-test.c
index 28acee4802..fa8316707d 100644
--- a/calendar/cal-client/client-test.c
+++ b/calendar/cal-client/client-test.c
@@ -65,7 +65,7 @@ list_uids (gpointer data)
cal_obj_uid_list_free (uids);
-/* gtk_object_unref (GTK_OBJECT (client)); */
+ gtk_object_unref (GTK_OBJECT (client));
return FALSE;
}
@@ -118,10 +118,11 @@ create_client (const char *uri, gboolean load)
if (load)
result = cal_client_load_calendar (client, uri);
else
- result = cal_client_load_calendar (client, uri);
+ result = cal_client_create_calendar (client, uri);
if (!result) {
- g_message ("create_client(): failure when issuing calendar load/create request `%s'",
+ g_message ("create_client(): failure when issuing calendar %s request `%s'",
+ load ? "load" : "create",
uri);
exit (1);
}
@@ -129,6 +130,21 @@ create_client (const char *uri, gboolean load)
return client;
}
+/* Callback used when a client is destroyed */
+static void
+client_destroy_cb (GtkObject *object, gpointer data)
+{
+ if (CAL_CLIENT (object) == client1)
+ client1 = NULL;
+ else if (CAL_CLIENT (object) == client2)
+ client2 = NULL;
+ else
+ g_assert_not_reached ();
+
+ if (!client1 && !client2)
+ gtk_main_quit ();
+}
+
int
main (int argc, char **argv)
{
@@ -151,8 +167,15 @@ main (int argc, char **argv)
exit (1);
}
- client1 = create_client ("/cvs/evolution/calendar/test2.vcf", TRUE);
- client2 = create_client ("/cvs/evolution/calendar/test2.vcf", FALSE);
+ client1 = create_client ("/cvs/evolution/calendar/gui/test2.vcf", TRUE);
+ gtk_signal_connect (GTK_OBJECT (client1), "destroy",
+ client_destroy_cb,
+ NULL);
+
+ client2 = create_client ("/cvs/evolution/calendar/gui/test2.vcf", FALSE);
+ gtk_signal_connect (GTK_OBJECT (client2), "destroy",
+ client_destroy_cb,
+ NULL);
bonobo_main ();
* Only use the KMS driver on i386/amd64. This allows the old version toKoop Mast2014-02-061-1/+2 * Remove expired ports:Rene Ladan2014-01-3115-160/+0 * - Reroll distribution file and host it locally to match WRKSRC enforcedRene Ladan2014-01-082-5/+4 * Add armv6 as allowed architecture.Rene Ladan2014-01-051-1/+1 * Limit to arm/ppc/ppc64/sparc64Rene Ladan2014-01-051-0/+2 * This package contains the X.Org xf86-video-scfb driver.Rene Ladan2014-01-055-0/+27 * Fix includes so that portrevision gets set properly.Niclas Zeising2013-12-171-2/+2 * Disconnect deprecated drivers.Niclas Zeising2013-12-171-3/+0 * Mark as ignore and set expiration date.Niclas Zeising2013-12-161-0/+4 * Fix staging with the non-default UTILS option.Niclas Zeising2013-12-161-2/+2 * Switch FreeBSD CURRENT to use the new xorg stack (WITH_NEW_XORG=) [0]Niclas Zeising2013-12-1698-167/+185 * Update to 1.6.3.Niclas Zeising2013-12-113-11/+4 * Update to 1.2.8Niclas Zeising2013-11-083-5/+4 * Update to 6.9.2Niclas Zeising2013-11-083-5/+4 * Update to 2.3.7Niclas Zeising2013-11-083-5/+4 * - Support STAGEDIRAlex Kozlov2013-10-142-3/+1 * - Fix various distinfo artifactsAlex Kozlov2013-10-071-1/+0 * Fix build with old xorg on 10-CURRENT.Niclas Zeising2013-10-021-1/+1 * The FreeBSD graphics/x11 team proudly presentsNiclas Zeising2013-09-3019-126/+965 * Update to 1.2.2 [1].Koop Mast2013-09-243-6/+5 * Add NO_STAGE all over the place in preparation for the staging support (cat: ...Baptiste Daroussin2013-09-2155-16/+58 * Update to 0.3.7Niclas Zeising2013-09-122-3/+3 * - Remove MAKE_JOBS_SAFE variableAlex Kozlov2013-08-151-1/+0 * Update to 6.9.1Niclas Zeising2013-08-142-4/+3 * Update to 1.4.1 for new xorg.Niclas Zeising2013-08-142-3/+3 * Update to 6.9.4Niclas Zeising2013-06-262-3/+3 * Update to 1.6.2Niclas Zeising2013-06-262-3/+3 * Update to 2.21.9 for new xorg.Niclas Zeising2013-06-212-3/+5 * Update to 2.21.8 for new xorg.Niclas Zeising2013-06-052-3/+3 * Revert changes to this file that accidentally snuck in in r319899.Niclas Zeising2013-06-051-0/+2 * Fix security issues in xorg client libraries.Niclas Zeising2013-06-051-2/+0 * Fix the options menu with bmake.Koop Mast2013-06-041-0/+2 * Add xf86-input-fpit to x11-drivers/Makefile, forgotten during the xorgNiclas Zeising2013-05-261-0/+1 * The FreeBSD x11 team proudly presentsNiclas Zeising2013-05-25111-716/+887 * Remove expired port:Rene Ladan2013-05-105-43/+0 * Remove unmaintained, expired ports:Rene Ladan2013-04-167-76/+0 * Style: tab -> space.Eitan Adler2013-03-291-1/+1 * Drop support for old versions of FreeBSD from unmaintained portsEitan Adler2013-03-281-7/+0 * This changes almost all the "gnomehack" only USE_GNOME cases to USES= pathfix.Eitan Adler2013-03-191-1/+1 * Add a new xorg module, to use with USE_XORG: xorg-macros. This moduleNiclas Zeising2013-03-121-5/+1 * Explicit disable KMS support. Because the ati driver only check if libdrm isKoop Mast2013-03-111-0/+2 * Mark deprecated and set expiration date.Niclas Zeising2013-03-111-5/+3 * Mark deprecated and set removal date.Niclas Zeising2013-03-101-0/+3 * Remove xf86-video-intel29 here as well.Niclas Zeising2013-02-221-1/+0 * Remove expired port.Niclas Zeising2013-02-214-52/+0 * - Fix all cases of 'No newline at end of file' in ports treeAlex Kozlov2013-02-011-1/+1 * Bring back to the futur the deprecation dateBaptiste Daroussin2013-01-271-6/+2 * Mark deprecated and set an expiration date one month for now. This port hasNiclas Zeising2013-01-161-0/+2 * Readd vmware and voodoo video drivers which got lost in the OptionNG conversion.Koop Mast2013-01-121-1/+3 * Convert x11@ owned ports to OptionsNG. Thanks go to bapt@ for review and helpKoop Mast2013-01-062-100/+96 * . incorporate an upstream patch to fix wrong read Protocol and DeviceBoris Samorodov2012-11-072-5/+13 * - Reassign nork@ ports to the heapThomas Abthorpe2012-08-161-1/+1 * Fix the build of xorg related ports when the base system is compiled withNiclas Zeising2012-07-301-0/+4 * - Update to 0.15.0Michael Scheidell2012-06-188-26/+26 * Teach the KMS intel driver how the KMS i915 kernel module in head is named.Koop Mast2012-06-072-1/+13 * Convert to new options frameworkBaptiste Daroussin2012-05-311-7/+8 * Fix pkglistKevin Lo2012-05-182-4/+1 * Unbreak by upgrading to 0.9.Mikhail Teterin2012-05-072-9/+3 * - Mark BROKEN: bad plistPav Lucistnik2012-05-031-0/+2 * - Fix patchingPav Lucistnik2012-05-036-410/+0 * Fix patching by removing a obsolete patch.Koop Mast2012-04-221-11/+0 * - Please welcome Xorg 7.5.2Martin Wilke2012-04-22103-190/+382 * Mark as deprecated and set expiration to 2012-05-10 for ports that are mark a...Baptiste Daroussin2012-04-101-0/+3 * - Unbreak portMichael Scheidell2012-03-1311-435/+132 * Remove whitespace after b.p.m to help reduce false postives when searching fo...Eitan Adler2012-02-082-2/+0 * - Add WWWMartin Wilke2012-02-041-0/+2 * In the rc.d scripts, change assignments to rcvar to use theDoug Barton2012-01-141-1/+1 * Update to 6.14.3Eitan Adler2012-01-132-3/+3 * Both of these ports have been BROKEN for nearly a year; it is time to get rid...Eitan Adler2012-01-089-66/+0 * - These two ports will soon be deleted so remove them from the meta port.Eitan Adler2012-01-081-2/+0 * - Connect xf86-video-intel29 to the buildPav Lucistnik2011-11-181-0/+1 * - Remove WITH_FBSD10_FIX, is no longer neededMartin Wilke2011-11-09