From: Carlos Garcia Campos Date: Wed, 15 Sep 2010 15:00:30 +0000 (+0200) Subject: [libview] Don't show an empty tooltip for links that don't have tooltip text X-Git-Tag: EVINCE_2_91_0~35 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=f6acfef181e3593caf5f0ded4a7ac440ef0d79ff;p=evince.git [libview] Don't show an empty tooltip for links that don't have tooltip text --- 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