Commit 93775267 authored by Sebastian Ramacher's avatar Sebastian Ramacher

Display notification after copying image

Signed-off-by: Sebastian Ramacher's avatarSebastian Ramacher <>
parent a020da70
......@@ -611,9 +611,23 @@ cb_page_widget_image_selected(ZathuraPage* page, GdkPixbuf* pixbuf, void* data)
if (selection != NULL) {
gtk_clipboard_set_image(gtk_clipboard_get(*selection), pixbuf);
bool notification = true;
girara_setting_get(zathura->ui.session, "selection-notification", &notification);
if (notification == true) {
char* target = NULL;
girara_setting_get(zathura->ui.session, "selection-clipboard", &target);
char* escaped_text = g_markup_printf_escaped(
_("Copied selected image to selection %s"), target);
girara_notify(zathura->ui.session, GIRARA_INFO, "%s", escaped_text);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment