From 6a8e461d73e90d28f9d150f72c3e442b8510c407 Mon Sep 17 00:00:00 2001 From: Tomas Ravinskas Date: Thu, 27 Apr 2017 09:11:58 +0300 Subject: [PATCH 1/2] - Workaround for GTK+ casefolding bug --- src/Sms.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Sms.py b/src/Sms.py index 7015e64..764189b 100755 --- a/src/Sms.py +++ b/src/Sms.py @@ -262,6 +262,7 @@ def get_completion(self): def match_contact(self, completion, key, tree_iter, udata): model = completion.get_model() + key = self.phone_no.get_text().casefold() matches = (any(token.startswith(key) for token in model[tree_iter][1].casefold().split()) for key in key.split()) From 84cbbfbb81b9f14d78f51b1b79441c594473e2e6 Mon Sep 17 00:00:00 2001 From: Tomas Ravinskas Date: Thu, 27 Apr 2017 13:25:28 +0300 Subject: [PATCH 2/2] - Change port to 8013 to avoid conflicts --- src/Sms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Sms.py b/src/Sms.py index 764189b..96fd4aa 100755 --- a/src/Sms.py +++ b/src/Sms.py @@ -64,7 +64,7 @@ def __init__(self): self.auth_base_url = 'https://accounts.google.com/o/oauth2/v2/auth' self.token_url = 'https://www.googleapis.com/oauth2/v4/token' self.scope = ['https://www.googleapis.com/auth/contacts.readonly'] - self.local_address = ('127.0.0.1', '8000') + self.local_address = ('127.0.0.1', '8013') try: with open(os.path.join(data_dir, 'token.json')) as fd: self.token = json.loads(fd.read())