[evolution/webkit-composer: 55/210] Improve the 'Lose all formatting?' dialog when switching from HTML to plain text mode
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/webkit-composer: 55/210] Improve the 'Lose all formatting?' dialog when switching from HTML to plain text mode
- Date: Mon, 8 Jul 2013 00:50:28 +0000 (UTC)
commit 145cfbaa64707799cc548e8cbdfd0f25e3f36574
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]