+
+static void
+on_connection_changed (TnyDevice *device, gboolean online, ModestMainWindow *self)
+{
+ /* When going online, do the equivalent of pressing the send/receive button,
+ * as per the specification: */
+ if (online) {
+ modest_ui_actions_on_send_receive (NULL /* action */, MODEST_WINDOW (self));
+ }
+}
+
+
+