[Xfce4-commits] [apps/xfce4-dict] 03/04: Escape link tooltip

noreply at xfce.org noreply at xfce.org
Mon Nov 19 01:05:40 CET 2018


This is an automated email from the git hooks/post-receive script.

a   n   d   r   e       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository apps/xfce4-dict.

commit f294a1cf62de19cfacf2f50ad6d6c94122138a12
Author: Andre Miranda <andreldm at xfce.org>
Date:   Sun Nov 18 21:04:54 2018 -0300

    Escape link tooltip
---
 lib/gui.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lib/gui.c b/lib/gui.c
index 3094415..a1fb564 100644
--- a/lib/gui.c
+++ b/lib/gui.c
@@ -423,9 +423,11 @@ static gboolean textview_query_tooltip_cb(GtkWidget *widget, gint x, gint y, gbo
 		if (name != NULL && strcmp("link", name) == 0)
 		{
 			gchar *target_uri = dict_get_web_query_uri(dd, dd->searched_word);
-			gtk_tooltip_set_markup(tooltip, target_uri);
+			gchar *target_uri_escaped = g_markup_escape_text (target_uri, -1);
+			gtk_tooltip_set_markup(tooltip, target_uri_escaped);
 			g_free(name);
 			g_free(target_uri);
+			g_free(target_uri_escaped);
 			return TRUE;
 		}
 		g_free(name);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list