* call osso_abook_init before doing anything with the addressbook.
[modest] / src / gnome / modest-platform.c
index 861eca3..0143b45 100644 (file)
@@ -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 */
 }
@@ -229,3 +229,15 @@ 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;
+}