[gnome-shell/wip/carlosg/fix-purpose-enums: 21/21] shellEntry: Use correct enum for input purpose hints



commit bfdbee8115b38d48411785742d36d3af19866027
Author: Carlos Garnacho <carlosg gnome org>
Date:   Tue Mar 13 15:22:15 2018 +0100

    shellEntry: Use correct enum for input purpose hints
    
    This was mistakenly left using the GTK+ counterparts. Luckily the enums
    are binary compatible, but oops.

 js/ui/shellEntry.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/shellEntry.js b/js/ui/shellEntry.js
index 897a226fa..9db5136e6 100644
--- a/js/ui/shellEntry.js
+++ b/js/ui/shellEntry.js
@@ -55,11 +55,11 @@ var EntryMenu = new Lang.Class({
 
         if (v) {
             this._makePasswordItem();
-            this._entry.input_purpose = Gtk.InputPurpose.PASSWORD;
+            this._entry.input_purpose = Clutter.InputContentPurpose.PASSWORD;
         } else {
             this._passwordItem.destroy();
             this._passwordItem = null;
-            this._entry.input_purpose = Gtk.InputPurpose.FREE_FORM;
+            this._entry.input_purpose = Clutter.InputContentPurpose.NORMAL;
         }
     },
 


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