#include <string.h>
#include <glib/gi18n.h>
#include <gtk/gtk.h>
-#include <widgets/modest-combo-box.h>
#include "widgets/modest-progress-bar.h"
#include "modest-tny-account.h"
#include "modest-platform.h"
/* Build GtkProgressBar */
adj = (GtkAdjustment *) gtk_adjustment_new (0, LOWER, UPPER, 0, 0, 0);
- priv->progress_bar = gtk_progress_bar_new_with_adjustment (adj);
+ priv->progress_bar = gtk_progress_bar_new ();
+ g_object_set (priv->progress_bar, "adjustment", adj, NULL);
req.width = 228;
req.height = 64;
gtk_progress_set_text_alignment (GTK_PROGRESS (priv->progress_bar), 0, 0.5);
static void
modest_progress_bar_cancel_all_operations (ModestProgressObject *self)
{
- ModestProgressBar *me;
- ModestProgressBarPrivate *priv;
-
- me = MODEST_PROGRESS_BAR (self);
- priv = MODEST_PROGRESS_BAR_GET_PRIVATE (me);
/* Cancel all the mail operations */
modest_mail_operation_queue_cancel_all (modest_runtime_get_mail_operation_queue ());
msg = g_strdup(_("mail_me_sending"));
break;
- case MODEST_MAIL_OPERATION_TYPE_OPEN:
- msg = g_strdup(_("mail_me_opening"));
- break;
default:
msg = g_strdup("");
}