]> www.fi.muni.cz Git - evince.git/blobdiff - libview/ev-view.c
[libview] Don't show an empty tooltip for links that don't have tooltip text
[evince.git] / libview / ev-view.c
index ba733540aef1f231c7ca4e1e66e64cdd9061c66b..24710f94a0d03a9de0b963fcd329e8ae6a7021c4 100644 (file)
@@ -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