diff options
author | Iain Holmes <iain@src.gnome.org> | 2001-12-17 20:20:19 +0800 |
---|---|---|
committer | Iain Holmes <iain@src.gnome.org> | 2001-12-17 20:20:19 +0800 |
commit | bdb095ab696dc1f2bd4bd081f90ee52d7a4bb61a (patch) | |
tree | 989e66e17c72406a28ea9acbd724693a92626e22 /my-evolution/e-summary-offline-handler.c | |
parent | 4effd42a76f5b9a0b73ccdf7ab66cbb36d38ac66 (diff) | |
download | gsoc2013-evolution-bdb095ab696dc1f2bd4bd081f90ee52d7a4bb61a.tar.gz gsoc2013-evolution-bdb095ab696dc1f2bd4bd081f90ee52d7a4bb61a.tar.zst gsoc2013-evolution-bdb095ab696dc1f2bd4bd081f90ee52d7a4bb61a.zip |
Merging patches from 1-0-branch
svn path=/trunk/; revision=15109
Diffstat (limited to 'my-evolution/e-summary-offline-handler.c')
-rw-r--r-- | my-evolution/e-summary-offline-handler.c | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/my-evolution/e-summary-offline-handler.c b/my-evolution/e-summary-offline-handler.c index fe8824ed0d..90f45e9ced 100644 --- a/my-evolution/e-summary-offline-handler.c +++ b/my-evolution/e-summary-offline-handler.c @@ -80,7 +80,11 @@ impl__get_isOffline (PortableServer_Servant servant, ESummaryOfflineHandler *offline_handler; offline_handler = E_SUMMARY_OFFLINE_HANDLER (bonobo_object_from_servant (servant)); - return offline_handler->priv->summary->online; + if (offline_handler->priv->summary != NULL) { + return offline_handler->priv->summary->online; + } + + return TRUE; } static void @@ -94,7 +98,9 @@ impl_prepareForOffline (PortableServer_Servant servant, offline_handler = E_SUMMARY_OFFLINE_HANDLER (bonobo_object_from_servant (servant)); priv = offline_handler->priv; - *active_connection_list = e_summary_offline_handler_create_connection_list (priv->summary); + if (priv->summary != NULL) { + *active_connection_list = e_summary_offline_handler_create_connection_list (priv->summary); + } } static void @@ -136,9 +142,11 @@ impl_goOffline (PortableServer_Servant servant, offline_handler = E_SUMMARY_OFFLINE_HANDLER (bonobo_object_from_servant (servant)); priv = offline_handler->priv; - priv->listener_interface = CORBA_Object_duplicate (progress_listener, ev); - - e_summary_set_online (priv->summary, progress_listener, FALSE, went_offline, offline_handler); + if (priv->summary != NULL) { + priv->listener_interface = CORBA_Object_duplicate (progress_listener, ev); + + e_summary_set_online (priv->summary, progress_listener, FALSE, went_offline, offline_handler); + } } static void @@ -148,7 +156,9 @@ impl_goOnline (PortableServer_Servant servant, ESummaryOfflineHandler *offline_handler; offline_handler = E_SUMMARY_OFFLINE_HANDLER (bonobo_object_from_servant (servant)); - e_summary_set_online (offline_handler->priv->summary, NULL, TRUE, NULL, NULL); + if (offline_handler->priv->summary != NULL) { + e_summary_set_online (offline_handler->priv->summary, NULL, TRUE, NULL, NULL); + } } /* GtkObject methods */ |