[evolution/wip/webkit-composer: 121/372] Improve the 'Lose all formatting?' dialog when switching from HTML to plain text mode
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/webkit-composer: 121/372] Improve the 'Lose all formatting?' dialog when switching from HTML to plain text mode
- Date: Thu, 6 Feb 2014 11:33:40 +0000 (UTC)
commit 0e927437201a1e6c55cdbce3305518e5cfaf9de2
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]