}
GdkPixbuf*
-modest_platform_get_icon (const gchar *name)
+modest_platform_get_icon (const gchar *name, guint icon_size)
{
GError *err = NULL;
GdkPixbuf* pixbuf;
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;
}
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");
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,
void
-modest_platform_remove_new_mail_notifications (void)
+modest_platform_remove_new_mail_notifications (gboolean only_visuals)
{
g_message ("NOT IMPLEMENTED %s", __FUNCTION__);
}