[gedit-plugins] Fixed multiedit tooltip
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-plugins] Fixed multiedit tooltip
- Date: Sat, 1 May 2010 09:41:09 +0000 (UTC)
commit 0a1fa817276a92099642d675cefb6931230f8aa1
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 44937a8..76fcbc3 100644
--- a/plugins/multiedit/multiedit/documenthelper.py
+++ b/plugins/multiedit/multiedit/documenthelper.py
@@ -785,11 +785,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]