[geary] Refine text of composer confirm close dialogs.
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary] Refine text of composer confirm close dialogs.
- Date: Wed, 10 Jan 2018 08:05:32 +0000 (UTC)
commit b47ce0732fa8fcd19e7ed1c3f45ae3c2f8e219c1
Author: Michael James Gratton <mike vee net>
Date: Wed Jan 10 18:32:08 2018 +1100
Refine text of composer confirm close dialogs.
Per discussion in Bug 748555.
src/client/composer/composer-widget.vala | 27 ++++++++++++++++++++++-----
1 files changed, 22 insertions(+), 5 deletions(-)
---
diff --git a/src/client/composer/composer-widget.vala b/src/client/composer/composer-widget.vala
index fbd9cff..46e01ec 100644
--- a/src/client/composer/composer-widget.vala
+++ b/src/client/composer/composer-widget.vala
@@ -1134,12 +1134,21 @@ public class ComposerWidget : Gtk.EventBox {
CloseStatus status = CloseStatus.PENDING_CLOSE;
if (this.can_save) {
- AlertDialog dialog = new TernaryConfirmationDialog(container.top_window,
- _("Do you want to discard this message?"), null, Stock._KEEP, Stock._DISCARD,
- Gtk.ResponseType.CLOSE, "suggested-action");
+ AlertDialog dialog = new TernaryConfirmationDialog(
+ container.top_window,
+ // Translators: This dialog text is displayed to the
+ // user when closing a composer where the options are
+ // Keep, Discard or Cancel.
+ _("Do you want to keep or discard this draft message?"),
+ null,
+ Stock._KEEP,
+ Stock._DISCARD, Gtk.ResponseType.CLOSE,
+ "suggested-action"
+ );
Gtk.ResponseType response = dialog.run();
if (response == Gtk.ResponseType.CANCEL ||
response == Gtk.ResponseType.DELETE_EVENT) {
+ // Cancel
status = CloseStatus.CANCEL_CLOSE;
} else if (response == Gtk.ResponseType.OK) {
// Keep
@@ -1153,8 +1162,16 @@ public class ComposerWidget : Gtk.EventBox {
discard_and_exit_async.begin();
}
} else {
- AlertDialog dialog = new ConfirmationDialog(container.top_window,
- _("Do you want to discard this message?"), null, Stock._DISCARD, "destructive-action");
+ AlertDialog dialog = new ConfirmationDialog(
+ container.top_window,
+ // Translators: This dialog text is displayed to the
+ // user when closing a composer where the options are
+ // only Discard or Cancel.
+ _("Do you want to discard this draft message?"),
+ null,
+ Stock._DISCARD,
+ "destructive-action"
+ );
Gtk.ResponseType response = dialog.run();
if (response == Gtk.ResponseType.OK) {
discard_and_exit_async.begin();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]