[polari] connection: Set a default response



commit f3921b032e13a6d85bf5c8a38e566a28a3c7a1da
Author: Florian Müllner <fmuellner gnome org>
Date:   Sun Sep 27 17:06:32 2015 +0200

    connection: Set a default response
    
    Pressing enter in any of the entries in the entry should activate
    the confirm button once the required fields have been filled out,
    however that broke when the controls were moved into the dialog's
    header bar in commit 96932bd60 as the button was no longer marked
    as default. Set an appropriate default response to fix it again.

 src/connections.js |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/connections.js b/src/connections.js
index 273a1a1..33a5f95 100644
--- a/src/connections.js
+++ b/src/connections.js
@@ -400,5 +400,6 @@ const ConnectionDetailsDialog = new Lang.Class({
                                     this._confirmButton, 'sensitive',
                                     GObject.BindingFlags.SYNC_CREATE);
         this.widget.get_content_area().add(this._details);
+        this.widget.set_default_response(Gtk.ResponseType.OK);
     }
 });


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