Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim-plugins.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Müller <rm1990@gmx.de>2018-05-13 15:00:54 +0300
committerRobin Müller <rm1990@gmx.de>2018-05-14 16:07:06 +0300
commit8799a904d7b839681d88b6c8b5bfe0a1615a0853 (patch)
tree80b44363ca8e82726aaa868846bf3a38b9b3120d /triggers
parent5d770f859633399ce71a17b459785ea17f037a8d (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.py2
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':