summaryrefslogtreecommitdiff
path: root/libview/ev-view.c
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-12-09 11:55:42 +0100
committerinfirit <[email protected]>2014-12-09 23:02:27 +0100
commit46b86ecb197547fee555b8a46aa97c61dc676cee (patch)
tree5cc49671b148c9e524c58314a6c5bf8c1455d615 /libview/ev-view.c
parent83ca334c004a0464322b7bba3f7aa4c83e63945d (diff)
downloadatril-46b86ecb197547fee555b8a46aa97c61dc676cee.tar.bz2
atril-46b86ecb197547fee555b8a46aa97c61dc676cee.tar.xz
[libview] Don't show an empty tooltip for links that don't have tooltip text
Based on evince commit: f6acfef181e3593caf5f0ded4a7ac440ef0d79ff From: Carlos Garcia Campos <[email protected]>
Diffstat (limited to 'libview/ev-view.c')
-rw-r--r--libview/ev-view.c5
1 files changed, 4 insertions, 1 deletions
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