From: John Darrington Date: Thu, 16 Apr 2009 13:26:57 +0000 (+0800) Subject: Hide tooltip when leaving sheet X-Git-Tag: v0.7.3~152 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be7f6a4c888e41921fb427f1ab4567622906792a;p=pspp-builds.git Hide tooltip when leaving sheet --- 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; }