static void
-on_connection_changed (TnyDevice *device, gboolean online, ModestMainWindow *self)
+on_account_store_connecting_finished (TnyAccountStore *store, ModestMainWindow *self)
{
+ const gboolean online = TRUE;
+
GtkWidget *icon;
const gchar *icon_name;
ModestMainWindowPrivate *priv;
/* If Modest has became online and the header view has a
header selected then show it */
- /* FIXME: there is a race condition if some account needs to
+ /* TODO: FIXME: there is a race condition if some account needs to
ask the user for a password */
/* if (online) { */
G_CALLBACK(modest_ui_actions_on_msg_recpt_activated), self);
/* Account store */
+ /* Emmitted by our TnyAccountStore::get_password_func() implementation,
+ * This is not a normal part of tinymail: */
g_signal_connect (G_OBJECT (modest_runtime_get_account_store()), "password_requested",
G_CALLBACK (modest_ui_actions_on_password_requested), self);
/* Device */
- g_signal_connect (G_OBJECT(modest_runtime_get_device()), "connection_changed",
- G_CALLBACK(on_connection_changed), self);
+ g_signal_connect (G_OBJECT(modest_runtime_get_account_store()), "connecting-finished",
+ G_CALLBACK(on_account_store_connecting_finished), self);
g_signal_connect (G_OBJECT(priv->online_toggle), "toggled",
G_CALLBACK(on_online_toggle_toggled), self);
/* TODO */
}
+ModestMainWindowContentsStyle
+modest_main_window_get_contents_style (ModestMainWindow *self)
+{
+ /* TODO */
+ return MODEST_MAIN_WINDOW_CONTENTS_STYLE_HEADERS;
+}
+
+
static void
get_msg_callback (TnyFolder *folder,
+ gboolean cancelled,
TnyMsg *msg,
GError **err,
gpointer user_data)
folder = tny_header_get_folder (header);
- g_print ("SI");
-
/* FIXME: do not use this directly. Use a mail operation
instead in order to get progress info */
tny_folder_get_msg_async (folder,