[Commits] [SCM] claws branch, litehtml, updated. 3.17.3-97-g36de1ed

ticho at claws-mail.org ticho at claws-mail.org
Tue Jan 29 20:16:39 CET 2019


The branch, litehtml has been updated
       via  36de1eda6d981f94c9ab078d9fd46c831dbe7b07 (commit)
      from  903c44e366c83ea856ce7e7dd45aa61059d0d358 (commit)

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


- Log -----------------------------------------------------------------
commit 36de1eda6d981f94c9ab078d9fd46c831dbe7b07
Author: Andrej Kacian <ticho at claws-mail.org>
Date:   Tue Jan 29 20:12:41 2019 +0100

    Make Litehtml plugin open links in configured way

diff --git a/src/plugins/litehtml_viewer/lh_widget.cpp b/src/plugins/litehtml_viewer/lh_widget.cpp
index 8db070c..2998564 100644
--- a/src/plugins/litehtml_viewer/lh_widget.cpp
+++ b/src/plugins/litehtml_viewer/lh_widget.cpp
@@ -39,6 +39,10 @@
 #include "lh_widget_wrapped.h"
 #include "http.h"
 
+extern "C" {
+const gchar *prefs_common_get_uri_cmd(void);
+}
+
 char master_css[] = {
 #include "css.inc"
 };
@@ -459,13 +463,7 @@ static gboolean button_release_event(GtkWidget *widget, GdkEventButton *event,
         if (!w->m_clicked_url.empty())
         {
                 debug_print("Open in browser: %s\n", w->m_clicked_url.c_str());
-		gtk_show_uri(gdk_screen_get_default(),
-			     w->m_clicked_url.c_str(),
-			     GDK_CURRENT_TIME, &error);
-                if (error) {
-                    g_warning("Failed opening url(%s): %s", w->m_clicked_url, error->message);
-                    g_clear_error(&error);
-                }
+                open_uri(w->m_clicked_url.c_str(), prefs_common_get_uri_cmd());
         }
     }
 

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list