From 49357f4f416d2858d2620d3dd39e8b99d30361aa Mon Sep 17 00:00:00 2001 From: Rodrigo Moya Date: Thu, 20 Mar 2003 11:50:56 +0000 Subject: removed activation of shell_client. (importer_destroy_cb): no need to 2003-03-20 Rodrigo Moya * importers/ical-importer.c: removed activation of shell_client. (importer_destroy_cb): no need to unref shell_client. (connect_to_shell): removed. (ical_importer_new, vcal_importer_new): don't call connect_to_shell. svn path=/trunk/; revision=20381 --- calendar/ChangeLog | 7 +++++++ calendar/importers/icalendar-importer.c | 28 ---------------------------- 2 files changed, 7 insertions(+), 28 deletions(-) (limited to 'calendar') diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 30411808ca..5d6da167b3 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,10 @@ +2003-03-20 Rodrigo Moya + + * importers/ical-importer.c: removed activation of shell_client. + (importer_destroy_cb): no need to unref shell_client. + (connect_to_shell): removed. + (ical_importer_new, vcal_importer_new): don't call connect_to_shell. + 2003-03-20 Rodrigo Moya * importers/ical-importer.c (get_uri_from_folder_path): removed. diff --git a/calendar/importers/icalendar-importer.c b/calendar/importers/icalendar-importer.c index 823dc11458..169b090ed6 100644 --- a/calendar/importers/icalendar-importer.c +++ b/calendar/importers/icalendar-importer.c @@ -52,7 +52,6 @@ typedef struct { icalcomponent *icalcomp; gboolean folder_contains_events; gboolean folder_contains_tasks; - EvolutionShellClient *shell_client; } ICalImporter; typedef struct { @@ -79,34 +78,9 @@ importer_destroy_cb (gpointer user_data) ici->icalcomp = NULL; } - if (BONOBO_IS_OBJECT (ici->shell_client)) { - bonobo_object_unref (BONOBO_OBJECT (ici->shell_client)); - ici->shell_client = NULL; - } - g_free (ici); } -/* Connects an importer to the Evolution shell */ -static void -connect_to_shell (ICalImporter *ici) -{ - CORBA_Environment ev; - GNOME_Evolution_Shell corba_shell; - - CORBA_exception_init (&ev); - corba_shell = bonobo_activation_activate_from_id (E_SHELL_OAFIID, 0, NULL, &ev); - if (BONOBO_EX (&ev)) { - CORBA_exception_free (&ev); - return; - } - - ici->shell_client = evolution_shell_client_new (corba_shell); - - CORBA_Object_release (corba_shell, &ev); - CORBA_exception_free (&ev); -} - /* This reads in an entire file and returns it. It returns NULL on error. The returned string should be freed. */ static char* @@ -345,7 +319,6 @@ ical_importer_new (void) process_item_fn, NULL, ici); - connect_to_shell (ici); g_object_weak_ref (G_OBJECT (ici->importer), (GWeakNotify) importer_destroy_cb, ici); @@ -464,7 +437,6 @@ vcal_importer_new (void) process_item_fn, NULL, ici); - connect_to_shell (ici); g_object_weak_ref (G_OBJECT (ici->importer), (GWeakNotify) importer_destroy_cb, ici); -- cgit v1.2.3