[Commits] [SCM] claws branch, litehtml, updated. 3.17.3-108-g0999f4f

ticho at claws-mail.org ticho at claws-mail.org
Fri Feb 1 21:34:00 CET 2019


The branch, litehtml has been updated
       via  0999f4fc9c5503b0b1a04ada6077c63dd1efe578 (commit)
      from  9487b830a25c71f384bdfac2e10526dd61eb0a2f (commit)

Summary of changes:
 src/plugins/litehtml_viewer/lh_widget.cpp |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)


- Log -----------------------------------------------------------------
commit 0999f4fc9c5503b0b1a04ada6077c63dd1efe578
Author: Andrej Kacian <ticho at claws-mail.org>
Date:   Fri Feb 1 21:33:36 2019 +0100

    Make Litehtml's "Copy Link" menuitem actually do something

diff --git a/src/plugins/litehtml_viewer/lh_widget.cpp b/src/plugins/litehtml_viewer/lh_widget.cpp
index a92735a..152053d 100644
--- a/src/plugins/litehtml_viewer/lh_widget.cpp
+++ b/src/plugins/litehtml_viewer/lh_widget.cpp
@@ -542,7 +542,12 @@ static void open_link_cb(GtkMenuItem *item, gpointer user_data)
 
 static void copy_link_cb(GtkMenuItem *item, gpointer user_data)
 {
-//	lh_widget_wrapped *w = (lh_widget_wrapped *)user_data;
+	lh_widget_wrapped *w = (lh_widget_wrapped *)user_data;
+
+	gtk_clipboard_set_text(gtk_clipboard_get(GDK_SELECTION_PRIMARY),
+			w->m_clicked_url.c_str(), -1);
+	gtk_clipboard_set_text(gtk_clipboard_get(GDK_SELECTION_CLIPBOARD),
+			w->m_clicked_url.c_str(), -1);
 }
 
 ///////////////////////////////////////////////////////////

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list