From af31aa8059354d85c253c04444e3eeb0f614d073 Mon Sep 17 00:00:00 2001 From: Pro-Panda Date: Wed, 7 Feb 2018 21:41:41 +0530 Subject: [PATCH] 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 --- src/sugar3/graphics/alert.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sugar3/graphics/alert.py b/src/sugar3/graphics/alert.py index 291064ac..65a6a89a 100644 --- a/src/sugar3/graphics/alert.py +++ b/src/sugar3/graphics/alert.py @@ -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