Fix: TimeoutAlert response on Timeout

Explanation:
There was inconsistency between docs and the code.
 - Docs said it returns -1 on timeout
 - Code returned Gtk.Response.OK on timeout

Effect of this commit:
 - Code returns -1 on timeout
This commit is contained in:
Pro-Panda 2018-02-07 21:41:41 +05:30 committed by James Cameron
parent 5876bc4a00
commit af31aa8059

View File

@ -406,7 +406,7 @@ class _TimeoutAlert(Alert):
self._timeout -= 1
self._timeout_text.set_text(self._timeout)
if self._timeout == 0:
Alert._response(self, Gtk.ResponseType.OK)
Alert._response(self, -1)
return False
return True