mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2025-01-15 09:46:01 +01:00
girara_notify takes something the markup parser can understand
This should fix #347. Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
parent
c918c590ee
commit
157c9d6d53
1 changed files with 5 additions and 1 deletions
|
@ -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);
|
gtk_clipboard_set_text(gtk_clipboard_get(*selection), text, -1);
|
||||||
|
|
||||||
char* stripped_text = g_strdelimit(g_strdup(text), "\n\t\r\n", ' ');
|
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);
|
g_free(stripped_text);
|
||||||
|
|
||||||
|
girara_notify(zathura->ui.session, GIRARA_INFO, escaped_text);
|
||||||
|
g_free(escaped_text);
|
||||||
}
|
}
|
||||||
|
|
||||||
g_free(selection);
|
g_free(selection);
|
||||||
|
|
Loading…
Reference in a new issue