shellEntry: Use correct enum for input purpose hints

This was mistakenly left using the GTK+ counterparts. Luckily the enums
are binary compatible, but oops.
This commit is contained in:
Carlos Garnacho 2018-03-13 15:22:15 +01:00 committed by Florian Müllner
parent 4a17c8f4a9
commit bfdbee8115

View File

@ -55,11 +55,11 @@ var EntryMenu = new Lang.Class({
if (v) { if (v) {
this._makePasswordItem(); this._makePasswordItem();
this._entry.input_purpose = Gtk.InputPurpose.PASSWORD; this._entry.input_purpose = Clutter.InputContentPurpose.PASSWORD;
} else { } else {
this._passwordItem.destroy(); this._passwordItem.destroy();
this._passwordItem = null; this._passwordItem = null;
this._entry.input_purpose = Gtk.InputPurpose.FREE_FORM; this._entry.input_purpose = Clutter.InputContentPurpose.NORMAL;
} }
}, },