[geary] Make "close inline composers?" question HIG compliant



commit b3c5abea8061a509e4a1db6d0c296ba7c1358e7c
Author: Jim Nelson <jim yorba org>
Date:   Tue May 20 16:41:22 2014 -0700

    Make "close inline composers?" question HIG compliant

 src/client/application/geary-controller.vala |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/src/client/application/geary-controller.vala b/src/client/application/geary-controller.vala
index 11de436..763d548 100644
--- a/src/client/application/geary-controller.vala
+++ b/src/client/application/geary-controller.vala
@@ -1890,12 +1890,9 @@ public class GearyController : Geary.BaseObject {
         // Find out what to do with the inline composers.
         // TODO: Remove this in favor of automatically saving drafts
         main_window.present();
-        AlertDialog dialog;
-        dialog = new AlertDialog(main_window, Gtk.MessageType.QUESTION,
-            _("Closing inline composers."), null, Gtk.Stock.DISCARD, Gtk.Stock.CANCEL,
-            null, Gtk.ResponseType.NONE);
-        Gtk.ResponseType response = dialog.run();
-        if (response == Gtk.ResponseType.OK) {
+        QuestionDialog dialog = new QuestionDialog(main_window, _("Close open draft messages?"), null,
+            Stock._CLOSE, Stock._CANCEL);
+        if (dialog.run() == Gtk.ResponseType.OK) {
             Gee.List<ComposerWidget> composers_to_destroy = new Gee.ArrayList<ComposerWidget>();
             foreach (ComposerWidget cw in composer_widgets) {
                 if (cw.state != ComposerWidget.ComposerState.DETACHED)


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