From 0b5c3e9f8b92121454a5573f7c3d3467554e6916 Mon Sep 17 00:00:00 2001 From: Iain Holmes Date: Fri, 26 Oct 2001 23:15:19 +0000 Subject: NULL the handle after a failed open so the offline handler won't think 2001-10-26 Iain Holmes * e-summary-rdf.c (open_callback): NULL the handle after a failed open so the offline handler won't think they're still open. (e_summary_rdf_set_online): Cancel all the open connections when the summary goes offline. * e-summary-weather.c (open_callback): NULL the handle after a failed open so the offline handler won't think they're still open. (e_summary_weather_set_online): Cancel all the open connections when the summary goes offline. * e-summary.c (e_summary_set_online): Call the callback if it's not NULL. svn path=/trunk/; revision=14183 --- my-evolution/e-summary-offline-handler.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'my-evolution/e-summary-offline-handler.c') diff --git a/my-evolution/e-summary-offline-handler.c b/my-evolution/e-summary-offline-handler.c index b0b1bc5efc..f338aad93c 100644 --- a/my-evolution/e-summary-offline-handler.c +++ b/my-evolution/e-summary-offline-handler.c @@ -51,9 +51,10 @@ e_summary_offline_handler_create_connection_list (ESummary *summary) list = GNOME_Evolution_ConnectionList__alloc (); list->_length = 0; - list->_maximum = e_summary_count_connections (summary); + list->_maximum = e_summary_count_connections (summary) + 1; list->_buffer = CORBA_sequence_GNOME_Evolution_Connection_allocbuf (list->_maximum); + g_print ("_length: %d\n_maximum: %d\n", list->_length, list->_maximum); connections = e_summary_add_connections (summary); for (p = connections; p; p = p->next) { ESummaryConnectionData *data; @@ -116,13 +117,13 @@ went_offline (ESummary *summary, CORBA_exception_init (&ev); g_warning ("Went offline"); - GNOME_Evolution_OfflineProgressListener_updateProgress (priv->listener_interface, connection_list, &ev); - if (BONOBO_EX (&ev)) { - g_warning ("Error updating offline progress: %s", - CORBA_exception_id (&ev)); - } + GNOME_Evolution_OfflineProgressListener_updateProgress (priv->listener_interface, connection_list, &ev); + if (BONOBO_EX (&ev)) { + g_warning ("Error updating offline progress: %s", + CORBA_exception_id (&ev)); + } - CORBA_exception_free (&ev); + CORBA_exception_free (&ev); } static void -- cgit