#include <gtk/gtkstock.h>
#include "modest-hildon-includes.h"
+#include "modest-platform.h"
#include <glib/gi18n.h>
else
{
- /* FIXME: Add a logical ID here */
- GtkDialog *dialog = GTK_DIALOG (hildon_note_new_confirmation (GTK_WINDOW (window),
- _("All changes made to the SMTP settings will be lost. Continue anyway?")));
- /* TODO: These button names will be ambiguous, and not specified in the UI specification. */
-
- const gint dialog_response = gtk_dialog_run (dialog);
- gtk_widget_destroy (GTK_WIDGET (dialog));
-
- if (dialog_response == GTK_RESPONSE_OK)
+ gint response;
+ response = modest_platform_run_confirmation_dialog (GTK_WINDOW (window),
+ _("imum_nc_wizard_confirm_lose_changes"));
+ if (response == GTK_RESPONSE_OK)
{
gtk_widget_hide(window);
dialog_finished = TRUE;
GtkWidget *label = gtk_label_new(_("mcen_ia_optionalsmtp_note"));
gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
/* So that it is shown without being truncated: */
- gtk_label_set_max_width_chars (GTK_LABEL (label), 40);
+ gtk_label_set_max_width_chars (GTK_LABEL (label), 20);
+ /* The documentation for gtk_label_set_line_wrap() says that we must
+ * call gtk_widget_set_size_request() with a hard-coded width,
+ * though I wonder why gtk_label_set_max_width_chars() isn't enough. */
+ gtk_widget_set_size_request (label, 400, -1);
gtk_widget_show (label);
gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, MODEST_MARGIN_HALF);