[evince] [libview] Don't show an empty tooltip for links that don't have tooltip text
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince] [libview] Don't show an empty tooltip for links that don't have tooltip text
- Date: Wed, 15 Sep 2010 15:10:46 +0000 (UTC)
commit f6acfef181e3593caf5f0ded4a7ac440ef0d79ff
Author: Carlos Garcia Campos <carlosgc gnome org>
Date: Wed Sep 15 17:00:30 2010 +0200
[libview] Don't show an empty tooltip for links that don't have tooltip text
libview/ev-view.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/libview/ev-view.c b/libview/ev-view.c
index ba73354..24710f9 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]