]> www.fi.muni.cz Git - evince.git/commitdiff
[libview] Don't show an empty tooltip for links that don't have tooltip text
authorCarlos Garcia Campos <carlosgc@gnome.org>
Wed, 15 Sep 2010 15:00:30 +0000 (17:00 +0200)
committerCarlos Garcia Campos <carlosgc@gnome.org>
Wed, 15 Sep 2010 15:05:47 +0000 (17:05 +0200)
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