[gedit-plugins/gnome-2-32] Fixed multiedit tooltip
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-plugins/gnome-2-32] Fixed multiedit tooltip
- Date: Sun, 29 Aug 2010 22:53:53 +0000 (UTC)
commit 19a2f615f19f3709f9b863ac7d453166d7daadb3
Author: Jesse van den Kieboom <jesse icecrew nl>
Date: Sat May 1 11:41:00 2010 +0200
Fixed multiedit tooltip
plugins/multiedit/multiedit/documenthelper.py | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/plugins/multiedit/multiedit/documenthelper.py b/plugins/multiedit/multiedit/documenthelper.py
index df08c7f..09d9ea4 100644
--- a/plugins/multiedit/multiedit/documenthelper.py
+++ b/plugins/multiedit/multiedit/documenthelper.py
@@ -806,11 +806,10 @@ class DocumentHelper(Signals):
def on_query_tooltip(self, view, x, y, keyboard_mode, tooltip):
if not self._in_mode:
return False
-
- geom = view.get_window(gtk.TEXT_WINDOW_TEXT).get_geometry()
- geom2 = view.get_window(gtk.TEXT_WINDOW_LEFT).get_geometry()
-
- if y < geom[3] or x < geom2[2]:
+
+ geom = view.get_window(gtk.TEXT_WINDOW_TOP).get_geometry()
+
+ if x < geom[0] or x > geom[0] + geom[2] or y < geom[1] or y > geom[1] + geom[3]:
return False
table = gtk.Table(4, 2)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]