From 157c9d6d535bc5adc5b2055609400b7e8cc6cf33 Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Mon, 21 Oct 2013 14:16:38 +0200 Subject: [PATCH] girara_notify takes something the markup parser can understand This should fix #347. Signed-off-by: Sebastian Ramacher --- callbacks.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/callbacks.c b/callbacks.c index 5d41ed2..3d2bfbb 100644 --- a/callbacks.c +++ b/callbacks.c @@ -562,8 +562,12 @@ cb_page_widget_text_selected(ZathuraPage* page, const char* text, void* data) gtk_clipboard_set_text(gtk_clipboard_get(*selection), text, -1); char* stripped_text = g_strdelimit(g_strdup(text), "\n\t\r\n", ' '); - girara_notify(zathura->ui.session, GIRARA_INFO, _("Copied selected text to clipboard: %s"), stripped_text); + char* escaped_text = g_markup_printf_escaped( + _("Copied selected text to clipboard: %s"), stripped_text); g_free(stripped_text); + + girara_notify(zathura->ui.session, GIRARA_INFO, escaped_text); + g_free(escaped_text); } g_free(selection);