From 773b7b2b4461d95200a841bc181e2fe5e9f6f3d4 Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Tue, 15 May 2007 19:49:20 +0000 Subject: Remove useless Bonobo usage. 2007-05-15 Ross Burton * tests/ecal/test-ecal.c: * tests/ecal/test-search.c: * tests/ecal/test-recur.c: Remove useless Bonobo usage. svn path=/trunk/; revision=7759 --- calendar/ChangeLog | 7 +++++++ calendar/tests/ecal/test-ecal.c | 15 +++++---------- calendar/tests/ecal/test-recur.c | 4 +--- calendar/tests/ecal/test-search.c | 4 +--- 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 + + * tests/ecal/test-ecal.c: + * tests/ecal/test-search.c: + * tests/ecal/test-recur.c: + Remove useless Bonobo usage. + 2007-05-13 Rob Bradford * 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 #include #include -#include -#include #include #include #include @@ -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 #include #include @@ -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 \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 #include #include @@ -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 \n"); -- cgit v1.2.1