[polari] entryArea: Use has_focus() method instead of property



commit 2b6c698f3f8caa5ee5605923001bb98cc650048f
Author: Florian Müllner <fmuellner gnome org>
Date:   Thu Jul 20 17:44:56 2017 +0200

    entryArea: Use has_focus() method instead of property
    
    GtkWidget has both a has_focus() method and a :has-focus property
    (that we represent as 'has_focus'). So far gjs was able to deal with
    the name overlap, but now trying to use the property will instead
    test for the availability of the method. Just avoid the conflict
    by switching to the method, which is unambiguous.

 src/entryArea.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/entryArea.js b/src/entryArea.js
index 3e32962..33b692c 100644
--- a/src/entryArea.js
+++ b/src/entryArea.js
@@ -249,7 +249,7 @@ var EntryArea = new Lang.Class({
         let toplevelFocus = this._chatEntry.get_toplevel().get_focus();
         return this.sensitive &&
                this._chatEntry.get_mapped() &&
-               !this._chatEntry.has_focus &&
+               !this._chatEntry.has_focus() &&
                !(toplevelFocus instanceof Gtk.Entry);
     },
 


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