[evolution/webkit-composer: 55/231] Improve the 'Lose all formatting?' dialog when switching from HTML to plain text mode



commit 5f9a8d07ac66f9675d073ee35651353fec9167d4
Author: Dan Vrátil <dvratil redhat com>
Date:   Wed Aug 22 13:13:57 2012 +0200

    Improve the 'Lose all formatting?' dialog when switching from HTML to plain text mode

 e-util/e-editor-actions.c |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/e-util/e-editor-actions.c b/e-util/e-editor-actions.c
index 77386ff..e16f729 100644
--- a/e-util/e-editor-actions.c
+++ b/e-util/e-editor-actions.c
@@ -657,9 +657,14 @@ mode_changed (struct _ModeChanged *data)
                                parent ? GTK_WINDOW (parent) : NULL,
                                GTK_DIALOG_DESTROY_WITH_PARENT,
                                GTK_MESSAGE_WARNING,
-                               GTK_BUTTONS_OK_CANCEL,
+                               GTK_BUTTONS_NONE,
                                _("Turning HTML mode off will cause the text "
-                                 "to loose all formatting. Do you want to continue?"));
+                                 "to lose all formatting. Do you want to continue?"));
+               gtk_dialog_add_buttons (
+                       GTK_DIALOG (dialog),
+                       _("_Don't lose formatting"), GTK_RESPONSE_CANCEL,
+                       _("_Lose formatting"), GTK_RESPONSE_OK,
+                       NULL);
                if (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_CANCEL) {
                        gtk_radio_action_set_current_value (
                                data->action, E_EDITOR_WIDGET_MODE_HTML);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]