#include "modest-runtime.h"
#include "gnome/modest-gnome-global-settings-dialog.h"
+#include "widgets/modest-account-settings-dialog.h"
+#include "gnome/modest-account-assistant.h"
gboolean
modest_platform_init (int argc, char *argv[])
pixbuf = gdk_pixbuf_new_from_file (name, &err);
if (!pixbuf) {
- g_printerr ("modest: error while loading icon '%s': %s\n",
- name, err->message);
+/* g_printerr ("modest: error while loading icon '%s': %s\n", */
+/* name, err->message); */
g_error_free (err);
}
void
modest_platform_run_information_dialog (GtkWindow *parent_window,
- const gchar *message)
+ const gchar *message,
+ gboolean block)
{
GtkWidget *dialog;
void
modest_platform_connect_if_remote_and_perform (GtkWindow *parent_window,
+ gboolean force,
TnyFolderStore *folder_store,
ModestConnectedPerformer callback,
gpointer user_data)
}
}
- modest_platform_connect_and_perform (parent_window, account, callback, user_data);
+ modest_platform_connect_and_perform (parent_window, force, account, callback, user_data);
return;
}
return modest_gnome_global_settings_dialog_new ();
}
+void
+modest_platform_push_email_notification(void)
+{
+ /* TODO: implement this */
+ g_print ("--------------- NEW MESSAGE ARRIVED ---------------\n");
+}
void
modest_platform_on_new_headers_received (TnyList *header_list,
{
GtkWidget *widget = modest_folder_view_new (query);
+ gtk_tree_view_set_headers_visible (GTK_TREE_VIEW (widget), FALSE);
/* Show all accounts by default */
modest_folder_view_set_style (MODEST_FOLDER_VIEW (widget),
MODEST_FOLDER_VIEW_STYLE_SHOW_ALL);
}
void
+modest_platform_double_connect_and_perform (GtkWindow *parent_window,
+ gboolean force,
+ TnyFolderStore *folder_store,
+ DoubleConnectionInfo *connect_info)
+{
+ if (connect_info->callback)
+ connect_info->callback (FALSE, NULL, parent_window, TNY_ACCOUNT (folder_store), connect_info->data);
+}
+
+void
modest_platform_connect_and_perform_if_network_account (GtkWindow *parent_window,
gboolean force,
TnyAccount *account,
GtkWidget *
modest_platform_get_account_settings_dialog (ModestAccountSettings *settings)
{
- GtkWidget *dialog = gtk_message_dialog_new (NULL, GTK_DIALOG_MODAL,
- GTK_MESSAGE_ERROR, GTK_BUTTONS_OK,
- "NOT IMPLEMENTED");
- return dialog;
+ ModestAccountSettingsDialog *dialog = modest_account_settings_dialog_new ();
+
+ modest_account_settings_dialog_set_account (dialog, settings);
+ return GTK_WIDGET (dialog);
}
GtkWidget *
-modest_platform_get_account_settings_wizard ()
+modest_platform_get_account_settings_wizard (void)
+{
+ GtkWidget *widget = modest_account_assistant_new (modest_runtime_get_account_mgr ());
+ return widget;
+}
+
+
+
+gboolean modest_platform_check_memory_low (ModestWindow *win,
+ gboolean visuals)
{
- GtkWidget *dialog = gtk_message_dialog_new (NULL, GTK_DIALOG_MODAL,
- GTK_MESSAGE_ERROR, GTK_BUTTONS_OK,
- "NOT IMPLEMENTED");
- return dialog;
+ g_debug ("%s not implemented", __FUNCTION__);
+ return FALSE;
}