diff options
author | Robin Müller <rm1990@gmx.de> | 2018-05-13 15:00:54 +0300 |
---|---|---|
committer | Robin Müller <rm1990@gmx.de> | 2018-05-14 16:07:06 +0300 |
commit | 8799a904d7b839681d88b6c8b5bfe0a1615a0853 (patch) | |
tree | 80b44363ca8e82726aaa868846bf3a38b9b3120d /triggers | |
parent | 5d770f859633399ce71a17b459785ea17f037a8d (diff) |
[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.
Diffstat (limited to 'triggers')
-rw-r--r-- | triggers/triggers.py | 2 |
1 files changed, 1 insertions, 1 deletions
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': |