-/* static void */
-/* on_account_store_connecting_finished (TnyAccountStore *store, ModestMainWindow *self) */
-/* { */
-/* ModestMainWindowPrivate *priv = MODEST_MAIN_WINDOW_GET_PRIVATE (self); */
-
-/* /\* When going online, do the equivalent of pressing the send/receive button, */
-/* * as per the specification: */
-/* * (without the check for >0 accounts, though that is not specified): *\/ */
-
-/* TnyDevice *device = tny_account_store_get_device (store); */
-
-/* /\* modest_folder_view_update_model (MODEST_FOLDER_VIEW (priv->folder_view), store); *\/ */
-
-/* /\* Check that we are really online. */
-/* * This signal should not be emitted when we are not connected, */
-/* * but it seems to happen sometimes: *\/ */
-/* if (!tny_device_is_online (device)) */
-/* return; */
-
-/* const gchar *iap_id = tny_maemo_conic_device_get_current_iap_id (TNY_MAEMO_CONIC_DEVICE (device)); */
-/* printf ("DEBUG: %s: connection id=%s\n", __FUNCTION__, iap_id); */
-
-/* /\* Stop the existing send queues: *\/ */
-/* modest_runtime_remove_all_send_queues (); */
-
-/* /\* Create the send queues again, using the appropriate transport accounts */
-/* * for this new connection. */
-/* * This could be the first time that they are created if this is the first */
-/* * connection. *\/ */
-/* /\* TODO: Does this really destroy the TnySendQueues and their threads */
-/* * We do not want 2 TnySendQueues to exist with the same underlying */
-/* * outbox directory. *\/ */
-
-/* modest_main_window_cleanup_queue_error_signals (self); */
-
-/* GSList *account_names = modest_account_mgr_account_names ( */
-/* modest_runtime_get_account_mgr(), */
-/* TRUE /\* enabled accounts only *\/); */
-/* GSList *iter = account_names; */
-/* while (iter) { */
-/* const gchar *account_name = (const gchar*)(iter->data); */
-/* if (account_name) { */
-/* TnyTransportAccount *account = TNY_TRANSPORT_ACCOUNT ( */
-/* modest_tny_account_store_get_transport_account_for_open_connection */
-/* (modest_runtime_get_account_store(), account_name)); */
-/* if (account) { */
-/* /\* Q: Is this the first location where the send-queues are requested? *\/ */
-/* QueueErrorSignal *esignal = g_slice_new (QueueErrorSignal); */
-/* printf ("debug: %s:\n Transport account for %s: %s\n", __FUNCTION__, account_name, */
-/* tny_account_get_id(TNY_ACCOUNT(account))); */
-/* esignal->queue = TNY_SEND_QUEUE (modest_runtime_get_send_queue (account)); */
-/* esignal->signal = g_signal_connect (G_OBJECT (esignal->queue), "error-happened", */
-/* G_CALLBACK (on_sendqueue_error_happened), self); */
-/* priv->queue_err_signals = g_list_prepend (priv->queue_err_signals, esignal); */
-/* } */
-/* } */
-
-/* iter = g_slist_next (iter); */
-/* } */
-
-/* modest_account_mgr_free_account_names (account_names); */
-/* account_names = NULL; */
-
-/* modest_ui_actions_do_send_receive (NULL, MODEST_WINDOW (self)); */
-/* } */