[gnumeric] Fix function tooltip location



commit 8af71384b47312b1af3057aa379c337d928a5176
Author: Andreas J Guelzow <aguelzow pyrshep ca>
Date:   Thu Aug 11 15:43:23 2011 -0600

    Fix function tooltip location
    
    2011-08-11  Andreas J. Guelzow <aguelzow pyrshep ca>
    
    	* gnumeric-expr-entry.c (gee_create_tooltip): determine the
    	correct location

 src/widgets/ChangeLog             |    5 +++++
 src/widgets/gnumeric-expr-entry.c |    4 +++-
 2 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/src/widgets/ChangeLog b/src/widgets/ChangeLog
index 7fc3941..29ed1a6 100644
--- a/src/widgets/ChangeLog
+++ b/src/widgets/ChangeLog
@@ -1,3 +1,8 @@
+2011-08-11  Andreas J. Guelzow <aguelzow pyrshep ca>
+
+	* gnumeric-expr-entry.c (gee_create_tooltip): determine the
+	correct location
+
 2011-08-11  Morten Welinder  <terra gnome org>
 
 	* gnm-notebook.c (gnm_notebook_init): Style GnmNotebook to avoid
diff --git a/src/widgets/gnumeric-expr-entry.c b/src/widgets/gnumeric-expr-entry.c
index cd484b7..ca12831 100644
--- a/src/widgets/gnumeric-expr-entry.c
+++ b/src/widgets/gnumeric-expr-entry.c
@@ -739,7 +739,9 @@ gee_create_tooltip (GnmExprEntry *gee, gchar const *str,
 	gdk_window_get_origin (gdkw, &root_x, &root_y);
 	gtk_widget_get_allocation (GTK_WIDGET (gee->entry), &allocation);
 
-	gtk_window_move (GTK_WINDOW (tip), root_x, root_y + allocation.height);
+	gtk_window_move (GTK_WINDOW (tip), 
+			 root_x + allocation.x, 
+			 root_y + allocation.y + allocation.height);
 
 	gtk_widget_show_all (tip);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]