From be7f6a4c888e41921fb427f1ab4567622906792a Mon Sep 17 00:00:00 2001 From: John Darrington Date: Thu, 16 Apr 2009 21:26:57 +0800 Subject: [PATCH] Hide tooltip when leaving sheet --- lib/gtk-contrib/psppire-sheet.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/gtk-contrib/psppire-sheet.c b/lib/gtk-contrib/psppire-sheet.c index 9442f260..6fb9a7a3 100644 --- a/lib/gtk-contrib/psppire-sheet.c +++ b/lib/gtk-contrib/psppire-sheet.c @@ -3753,7 +3753,8 @@ create_hover_window (void) #define HOVER_WINDOW_Y_OFFSET 2 static void -show_subtitle (PsppireSheet *sheet, gint row, gint column, const gchar *subtitle) +show_subtitle (PsppireSheet *sheet, gint row, gint column, + const gchar *subtitle) { gint x, y; gint px, py; @@ -4124,6 +4125,9 @@ psppire_sheet_crossing_notify (GtkWidget *widget, else if (event->window == sheet->row_title_window) sheet->row_title_under = event->type == GDK_ENTER_NOTIFY; + if (event->type == GDK_LEAVE_NOTIFY) + gtk_widget_hide (sheet->hover_window->window); + return TRUE; } -- 2.30.2