From f6acfef181e3593caf5f0ded4a7ac440ef0d79ff Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Wed, 15 Sep 2010 17:00:30 +0200 Subject: [PATCH] [libview] Don't show an empty tooltip for links that don't have tooltip text --- libview/ev-view.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libview/ev-view.c b/libview/ev-view.c index ba733540..24710f94 100644 --- a/libview/ev-view.c +++ b/libview/ev-view.c @@ -3513,10 +3513,13 @@ ev_view_query_tooltip (GtkWidget *widget, get_link_area (view, x, y, link, &link_area); gtk_tooltip_set_text (tooltip, text); gtk_tooltip_set_tip_area (tooltip, &link_area); + g_free (text); + + return TRUE; } g_free (text); - return TRUE; + return FALSE; } static void -- 2.43.0