From: Johannes Schmid Date: Wed, 4 Jul 2007 15:31:24 +0000 (+0000) Subject: 2007-07-04 Johannes Schmid X-Git-Tag: git_migration_finished~2967 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=b39bca79f7b4cfe4b17a669b42fc151168789985 2007-07-04 Johannes Schmid * src/maemo/modest-connection-specific-smtp-window.c: Fix UI specification problems with projects.meamo.org NB#60479 pmo-trunk-r2571 --- diff --git a/src/maemo/modest-connection-specific-smtp-window.c b/src/maemo/modest-connection-specific-smtp-window.c index b3a21b2..b7c5266 100644 --- a/src/maemo/modest-connection-specific-smtp-window.c +++ b/src/maemo/modest-connection-specific-smtp-window.c @@ -18,6 +18,7 @@ #include #include "modest-hildon-includes.h" +#include "modest-platform.h" #include @@ -274,15 +275,10 @@ on_button_edit (GtkButton *button, gpointer user_data) 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;