Temporarily adding the wimax removal patch, to help the integration process.
[modest] / src / gnome / modest-platform.c
index 8cac0d5..9e2f76b 100644 (file)
@@ -113,7 +113,7 @@ modest_platform_show_uri_popup (const gchar *uri)
 }
 
 GdkPixbuf*
-modest_platform_get_icon (const gchar *name)
+modest_platform_get_icon (const gchar *name, guint icon_size)
 {
        GError *err = NULL;
        GdkPixbuf* pixbuf;
@@ -193,7 +193,30 @@ modest_platform_run_confirmation_dialog (GtkWindow *parent_window,
        response = gtk_dialog_run (GTK_DIALOG(dialog));
        gtk_widget_destroy (dialog);
        
-       /* TODO implement confirmation dialog */
+       return response;
+}
+
+gint
+modest_platform_run_confirmation_dialog_with_buttons (GtkWindow *parent_window,
+                                                     const gchar *message,
+                                                     const gchar *button_accept,
+                                                     const gchar *button_cancel)
+{
+       gint response;
+       GtkWidget *dialog;
+
+       dialog = gtk_dialog_new_with_buttons (message,
+                                             parent_window,
+                                             GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
+                                             button_accept,
+                                             GTK_RESPONSE_ACCEPT,
+                                             button_cancel,
+                                             GTK_RESPONSE_CANCEL,
+                                             NULL);
+
+       response = gtk_dialog_run (GTK_DIALOG(dialog));
+       gtk_widget_destroy (dialog);
+       
        return response;
 }
 
@@ -231,6 +254,7 @@ gboolean modest_platform_connect_and_wait_if_network_account (GtkWindow *parent_
 
 void
 modest_platform_connect_if_remote_and_perform (GtkWindow *parent_window, 
+                                              gboolean force,
                                               TnyFolderStore *folder_store, 
                                               ModestConnectedPerformer callback, 
                                               gpointer user_data)
@@ -272,7 +296,7 @@ modest_platform_connect_if_remote_and_perform (GtkWindow *parent_window,
                }
        }
  
-       modest_platform_connect_and_perform (parent_window, account, callback, user_data);
+       modest_platform_connect_and_perform (parent_window, force, account, callback, user_data);
  
        return;
 }
@@ -297,9 +321,16 @@ modest_platform_get_global_settings_dialog ()
        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)
+modest_platform_on_new_headers_received (TnyList *header_list,
+                                        gboolean show_visual)
 {
        /* TODO: implement this */
        g_print ("--------------- NEW MESSAGE ARRIVED ---------------\n");
@@ -321,6 +352,15 @@ modest_platform_information_banner (GtkWidget *widget,
        g_message ("NOT IMPLEMENTED");;
 }
 
+void
+modest_platform_information_banner_with_timeout (GtkWidget *widget,
+                                                const gchar *icon_name,
+                                                const gchar *text,
+                                                gint timeout)
+{
+       g_message ("NOT IMPLEMENTED");;
+}
+
 GtkWidget *
 modest_platform_animation_banner (GtkWidget *widget,
                                  const gchar *icon_name,
@@ -342,6 +382,7 @@ modest_platform_create_folder_view (TnyFolderStoreQuery *query)
 {
        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);
@@ -359,6 +400,7 @@ modest_platform_run_alert_dialog (const gchar* prompt,
 
 void 
 modest_platform_connect_and_perform (GtkWindow *parent_window, 
+                                    gboolean force,
                                     TnyAccount *account, 
                                     ModestConnectedPerformer callback, 
                                     gpointer user_data)
@@ -369,6 +411,7 @@ modest_platform_connect_and_perform (GtkWindow *parent_window,
 
 void 
 modest_platform_connect_and_perform_if_network_account (GtkWindow *parent_window, 
+                                                       gboolean force,
                                                        TnyAccount *account,
                                                        ModestConnectedPerformer callback, 
                                                        gpointer user_data)
@@ -389,7 +432,7 @@ modest_platform_connect_and_perform_if_network_folderstore (GtkWindow *parent_wi
 
 
 void 
-modest_platform_remove_new_mail_notifications (void)
+modest_platform_remove_new_mail_notifications (gboolean only_visuals)
 {
        g_message ("NOT IMPLEMENTED %s", __FUNCTION__);
 }