Commit ae43d7ca authored by Dorota Czaplejewicz's avatar Dorota Czaplejewicz
Browse files

Merge branch 'terminal_purpose' into 'master'

Entry test: Add Terminal input purpose

See merge request Librem5/squeekboard!278
parents 432e4fe1 0b136468
......@@ -6,6 +6,12 @@ gi.require_version('Gtk', '3.0')
from gi.repository import Gtk
terminal = [("Terminal", Gtk.InputPurpose.TERMINAL)]
except AttributeError:
print("Terminal purpose not available on this GTK version", file=sys.stderr)
terminal = []
class App(Gtk.Application):
purposes = [
......@@ -18,8 +24,8 @@ class App(Gtk.Application):
("E-mail", Gtk.InputPurpose.EMAIL),
("Name", Gtk.InputPurpose.NAME),
("Password", Gtk.InputPurpose.PASSWORD),
("PIN", Gtk.InputPurpose.PIN)
("PIN", Gtk.InputPurpose.PIN),
] + terminal
def do_activate(self):
w = Gtk.ApplicationWindow(application=self)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment