From 46b86ecb197547fee555b8a46aa97c61dc676cee Mon Sep 17 00:00:00 2001 From: infirit Date: Tue, 9 Dec 2014 11:55:42 +0100 Subject: [libview] Don't show an empty tooltip for links that don't have tooltip text Based on evince commit: f6acfef181e3593caf5f0ded4a7ac440ef0d79ff From: Carlos Garcia Campos --- libview/ev-view.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'libview') diff --git a/libview/ev-view.c b/libview/ev-view.c index 0119211f..deabbeab 100644 --- a/libview/ev-view.c +++ b/libview/ev-view.c @@ -3660,10 +3660,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 -- cgit v1.2.1