From 8799a904d7b839681d88b6c8b5bfe0a1615a0853 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robin=20M=C3=BCller?= Date: Sun, 13 May 2018 14:00:54 +0200 Subject: [triggers] Add missing brackets has_focus is a method of the Gtk.Window instance so it's necessary to add brackets after the method name. Otherwise python returns just the reference to the method and not the result of the method. --- triggers/triggers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'triggers') diff --git a/triggers/triggers.py b/triggers/triggers.py index 4b4df0b..4d58190 100644 --- a/triggers/triggers.py +++ b/triggers/triggers.py @@ -115,7 +115,7 @@ class Triggers(GajimPlugin): if not ctrl: # Does not apply in this case return True - has_focus = ctrl.parent_win.window.has_focus + has_focus = ctrl.parent_win.window.has_focus() if has_focus and rule['has_focus'] == 'no': return False elif not has_focus and rule['has_focus'] == 'yes': -- cgit v1.2.3