[shotwell] Really fix not using Enter for closing the auth dialog



commit 4b9d9ecc8ec9c1ddb4c73993f84b0166275cd732
Author: Jens Georg <mail jensge org>
Date:   Wed Jan 23 18:52:05 2019 +0100

    Really fix not using Enter for closing the auth dialog

 src/publishing/PublishingUI.vala | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/publishing/PublishingUI.vala b/src/publishing/PublishingUI.vala
index 995e50d3..f0f5611c 100644
--- a/src/publishing/PublishingUI.vala
+++ b/src/publishing/PublishingUI.vala
@@ -168,6 +168,7 @@ public class PublishingDialog : Gtk.Dialog {
         
         if (use_header) {
             close_cancel_button = new Gtk.Button.with_mnemonic("_Cancel");
+            close_cancel_button.set_can_default(true);
 
             ((Gtk.HeaderBar) get_header_bar()).pack_start(close_cancel_button);
             ((Gtk.HeaderBar) get_header_bar()).pack_end(service_selector_box);
@@ -393,13 +394,12 @@ public class PublishingDialog : Gtk.Dialog {
 
     public void set_close_button_mode() {
         close_cancel_button.set_label(_("_Close"));
-        close_cancel_button.set_can_default(true);
         set_default(close_cancel_button);
     }
 
     public void set_cancel_button_mode() {
         close_cancel_button.set_label(_("_Cancel"));
-        close_cancel_button.set_can_default(false);
+        set_default(null);
     }
 
     public void lock_service() {


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