diff options
author | Aleksey Lim <alsroot@member.fsf.org> | 2010-01-26 17:33:36 (GMT) |
---|---|---|
committer | Aleksey Lim <alsroot@member.fsf.org> | 2010-01-26 17:33:36 (GMT) |
commit | 748feb7cf5dba0816bc2ed44a8521fdc650788e6 (patch) | |
tree | a577d2b7e1f6511fd031c3a169172b8355ec8bfe | |
parent | 5ef41b00ce7a83f808a778d014f93c7448d5569b (diff) |
Do not accpet out of focus button-release-event
-rw-r--r-- | src/jarabe/journal/widgets.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/jarabe/journal/widgets.py b/src/jarabe/journal/widgets.py index d4066cc..dc1dc32 100644 --- a/src/jarabe/journal/widgets.py +++ b/src/jarabe/journal/widgets.py @@ -79,6 +79,10 @@ class _Button(gtk.Alignment): self.icon.props.fill_color = style.COLOR_BUTTON_GREY.get_svg() def __enter_notify_event_cb(self, widget, event): + x, y = self.get_pointer() + if x < 0 or x >= self.allocation.width or \ + y < 0 or y >= self.allocation.height: + return self.prelight = True self.do_colors() |