[polari] connection: Fix GObject property name



commit 5ac18d4b48d3a170bbab2f7b3139d6dde9f539c9
Author: Florian Müllner <fmuellner gnome org>
Date:   Mon Mar 2 23:02:06 2015 +0100

    connection: Fix GObject property name
    
    Commit 2e6956e307 turned ConnectionDetails:can-confirm into a GObject
    property, but kept the old JS property name of canConfirm. While
    this worked mostly as we were accessing the property directly, it
    broke the binding the property in the connection dialog.

 src/connections.js |    4 ++--
 src/joinDialog.js  |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/connections.js b/src/connections.js
index 180764e..17d701e 100644
--- a/src/connections.js
+++ b/src/connections.js
@@ -246,13 +246,13 @@ const ConnectionDetails = new Lang.Class({
             this._descEntry.text = account.display_name;
     },
 
-    get canConfirm() {
+    get can_confirm() {
         return this._serverEntry.get_text_length() > 0 &&
                this._nickEntry.get_text_length() > 0;
     },
 
     save: function() {
-        if (!this.canConfirm)
+        if (!this.can_confirm)
             return;
 
         if (this._account)
diff --git a/src/joinDialog.js b/src/joinDialog.js
index 3db996c..74d8f54 100644
--- a/src/joinDialog.js
+++ b/src/joinDialog.js
@@ -192,7 +192,7 @@ const JoinDialog = new Lang.Class({
             sensitive = this._connectionCombo.get_active() > -1  &&
                         this._nameEntry.get_text_length() > 0;
         } else {
-            sensitive = this._details.canConfirm;
+            sensitive = this._details.can_confirm;
         }
 
         this._confirmButton.sensitive = sensitive;


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