Unverified Commit 8799a904 authored by Robin Müller's avatar Robin Müller
Browse files

[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.
parent 5d770f85
...@@ -115,7 +115,7 @@ class Triggers(GajimPlugin): ...@@ -115,7 +115,7 @@ class Triggers(GajimPlugin):
if not ctrl: if not ctrl:
# Does not apply in this case # Does not apply in this case
return True 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': if has_focus and rule['has_focus'] == 'no':
return False return False
elif not has_focus and rule['has_focus'] == 'yes': elif not has_focus and rule['has_focus'] == 'yes':
......
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