X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fgnome%2Fmodest-platform.c;h=afe8f66f59036e663e52279c1b28e1d2da609185;hb=8376cf7ef539a483f17fc1e4d88a5ac91acaa24a;hp=afba4322f67caa7ac8b122a676e6256f32edc0a3;hpb=559eb056f86c05494e9c6c657c11a09ab9b78cc4;p=modest diff --git a/src/gnome/modest-platform.c b/src/gnome/modest-platform.c index afba432..afe8f66 100644 --- a/src/gnome/modest-platform.c +++ b/src/gnome/modest-platform.c @@ -37,7 +37,7 @@ #include "gnome/modest-gnome-global-settings-dialog.h" gboolean -modest_platform_init (void) +modest_platform_init (int argc, char *argv[]) { return TRUE; /* nothing to do */ } @@ -90,7 +90,7 @@ modest_platform_activate_uri (const gchar *uri) } gboolean -modest_platform_activate_file (const gchar *path) +modest_platform_activate_file (const gchar *path, const gchar *mime_type) { modest_runtime_not_implemented (NULL); return FALSE; @@ -183,7 +183,14 @@ modest_platform_run_information_dialog (GtkWindow *parent_window, /* TODO: implement a information dialog */ } -gboolean modest_platform_connect_and_wait (GtkWindow *parent_window) +gboolean modest_platform_connect_and_wait (GtkWindow *parent_window, TnyAccount *account) +{ + /* TODO: Do something with network-manager? + Otherwise, maybe it is safe to assume that we would already be online if we could be. */ + return TRUE; +} + +gboolean modest_platform_connect_and_wait_if_network_account (GtkWindow *parent_window, TnyAccount *account) { /* TODO: Do something with network-manager? Otherwise, maybe it is safe to assume that we would already be online if we could be. */ @@ -215,3 +222,29 @@ modest_platform_on_new_msg (void) /* TODO: implement this */ g_print ("--------------- NEW MESSAGE ARRIVED ---------------\n"); } + + + +gboolean +modest_platform_show_help (GtkWidget *widget, const gchar *help_id) +{ + return TRUE; /* TODO */ +} + +void +modest_platform_show_search_messages (GtkWindow *parent_window) +{ + modest_runtime_not_implemented (NULL); +} + +GtkWidget * +modest_platform_create_folder_view (TnyFolderStoreQuery *query) +{ + GtkWidget *widget = modest_folder_view_new (query); + + /* Show all accounts by default */ + modest_folder_view_set_style (MODEST_FOLDER_VIEW (widget), + MODEST_FOLDER_VIEW_STYLE_SHOW_ALL); + + return widget; +}