summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoss Burton <ross@openedhand.com>2007-05-15 19:49:20 +0000
committerRoss Burton <rburton@src.gnome.org>2007-05-15 19:49:20 +0000
commit773b7b2b4461d95200a841bc181e2fe5e9f6f3d4 (patch)
tree83b272a98bf7348ab2d3b4d8e01c7e828499bea2
parent014ea787512d668a31352e604ca703ce0e13c157 (diff)
downloadevolution-data-server-773b7b2b4461d95200a841bc181e2fe5e9f6f3d4.tar.gz
Remove useless Bonobo usage.
2007-05-15 Ross Burton <ross@openedhand.com> * tests/ecal/test-ecal.c: * tests/ecal/test-search.c: * tests/ecal/test-recur.c: Remove useless Bonobo usage. svn path=/trunk/; revision=7759
-rw-r--r--calendar/ChangeLog7
-rw-r--r--calendar/tests/ecal/test-ecal.c15
-rw-r--r--calendar/tests/ecal/test-recur.c4
-rw-r--r--calendar/tests/ecal/test-search.c4
4 files changed, 14 insertions, 16 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 5257c0b77..7f4ba5c66 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,10 @@
+2007-05-15 Ross Burton <ross@openedhand.com>
+
+ * tests/ecal/test-ecal.c:
+ * tests/ecal/test-search.c:
+ * tests/ecal/test-recur.c:
+ Remove useless Bonobo usage.
+
2007-05-13 Rob Bradford <rob@openedhand.com>
* libecal/e-cal.c: (e_cal_create_object):
diff --git a/calendar/tests/ecal/test-ecal.c b/calendar/tests/ecal/test-ecal.c
index ad5d9cc7c..1e674ce22 100644
--- a/calendar/tests/ecal/test-ecal.c
+++ b/calendar/tests/ecal/test-ecal.c
@@ -25,8 +25,6 @@
#include <string.h>
#include <glib.h>
#include <glib/gi18n.h>
-#include <bonobo-activation/bonobo-activation.h>
-#include <bonobo/bonobo-main.h>
#include <libecal/e-cal.h>
#include <libecal/e-cal-component.h>
#include <libecal/e-cal-time-util.h>
@@ -44,6 +42,8 @@ static int tests_passed = 0;
static ECal *client1;
static ECal *client2;
+static GMainLoop *loop;
+
/* Prints a message with a client identifier */
static void
cl_printf (ECal *client, const char *format, ...)
@@ -139,7 +139,7 @@ client_destroy_cb (gpointer data, GObject *object)
g_assert_not_reached ();
if (!client1 && !client2)
- bonobo_main_quit ();
+ g_main_loop_quit (loop);
}
static char *
@@ -721,18 +721,13 @@ main (int argc, char **argv)
textdomain (GETTEXT_PACKAGE);
g_type_init ();
- bonobo_activation_init (argc, argv);
-
- if (!bonobo_init (&argc, argv)) {
- g_message ("main(): could not initialize Bonobo");
- exit (1);
- }
+ loop = g_main_loop_new (NULL, TRUE);
/* arg1- file name; arg2- client suffix */
uri = g_strconcat (argv[1], argv[2], NULL);
create_client (&client1, uri, E_CAL_SOURCE_TYPE_EVENT, FALSE);
g_free (uri);
- bonobo_main ();
+ g_main_loop_run (loop);
return 0;
}
diff --git a/calendar/tests/ecal/test-recur.c b/calendar/tests/ecal/test-recur.c
index 7042785be..3ebe6144e 100644
--- a/calendar/tests/ecal/test-recur.c
+++ b/calendar/tests/ecal/test-recur.c
@@ -1,6 +1,5 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
-#include <bonobo/bonobo-main.h>
#include <stdlib.h>
#include <libecal/e-cal.h>
@@ -9,8 +8,7 @@ main (int argc, char **argv)
{
ECal *ecal;
- if (bonobo_init (&argc, argv) == FALSE)
- g_error ("Could not initialize Bonobo");
+ g_type_init ();
if (argc < 2) {
printf ("usage: test-recur <uid>\n");
diff --git a/calendar/tests/ecal/test-search.c b/calendar/tests/ecal/test-search.c
index 41b5422f0..ce627da81 100644
--- a/calendar/tests/ecal/test-search.c
+++ b/calendar/tests/ecal/test-search.c
@@ -1,6 +1,5 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
-#include <bonobo/bonobo-main.h>
#include <stdlib.h>
#include <libecal/e-cal.h>
@@ -10,8 +9,7 @@ main (int argc, char **argv)
ECal *ecal;
GList *l, *objects;
- if (bonobo_init (&argc, argv) == FALSE)
- g_error ("Could not initialize Bonobo");
+ g_type_init ();
if (argc < 3) {
printf ("usage: test-search <uid> <query>\n");