aboutsummaryrefslogtreecommitdiffstats
path: root/my-evolution/e-summary-offline-handler.c
diff options
context:
space:
mode:
authorIain Holmes <iain@ximian.com>2001-10-27 07:15:19 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2001-10-27 07:15:19 +0800
commit0b5c3e9f8b92121454a5573f7c3d3467554e6916 (patch)
tree85f8d9b3d79f60708a012d06f5c02d1c06dbaa4a /my-evolution/e-summary-offline-handler.c
parentc944779866017804bbeb94f9c81af4ffa0eef3ba (diff)
downloadgsoc2013-evolution-0b5c3e9f8b92121454a5573f7c3d3467554e6916.tar.gz
gsoc2013-evolution-0b5c3e9f8b92121454a5573f7c3d3467554e6916.tar.zst
gsoc2013-evolution-0b5c3e9f8b92121454a5573f7c3d3467554e6916.zip
NULL the handle after a failed open so the offline handler won't think
2001-10-26 Iain Holmes <iain@ximian.com> * 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
Diffstat (limited to 'my-evolution/e-summary-offline-handler.c')
-rw-r--r--my-evolution/e-summary-offline-handler.c15
1 files changed, 8 insertions, 7 deletions
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