From d59678c60f87127e8b05a081a150837380cbcad5 Mon Sep 17 00:00:00 2001 From: Dimitur Kirov Date: Tue, 28 Feb 2006 10:15:42 +0000 Subject: [PATCH] 2 typos --- src/tooltips.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tooltips.py b/src/tooltips.py index a73764129..40e7a3126 100644 --- a/src/tooltips.py +++ b/src/tooltips.py @@ -88,8 +88,8 @@ class BaseTooltip: self.hide_tooltip() def on_size_request(self, widget, requisition): - half_width = requisition.width / 2 + 1 - if self.preferred_position[0] < half_width: + half_width = requisition.width / 2 + 1 + if self.preferred_position[0] < half_width: self.preferred_position[0] = 0 elif self.preferred_position[0] + requisition.width > \ self.screen.get_width() + half_width: @@ -97,7 +97,7 @@ class BaseTooltip: requisition.width else: self.preferred_position[0] -= half_width - screen.get_height() + self.screen.get_height() if self.preferred_position[1] + requisition.height > \ self.screen.get_height(): # flip tooltip up