From e10b693bbf7337e25e3acb90bd71449900c4be8c Mon Sep 17 00:00:00 2001 From: yggverse Date: Sat, 14 Sep 2024 03:33:28 +0300 Subject: [PATCH] draft link activation event --- src/app/browser/main/tab/page/content/text/gemini.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/app/browser/main/tab/page/content/text/gemini.cpp b/src/app/browser/main/tab/page/content/text/gemini.cpp index bddaca5a..d0587260 100644 --- a/src/app/browser/main/tab/page/content/text/gemini.cpp +++ b/src/app/browser/main/tab/page/content/text/gemini.cpp @@ -35,6 +35,17 @@ Gemini::Gemini( true ); + // Connect signals + label->signal_activate_link().connect( + [label](const Glib::ustring & URI) -> bool + { + // @TODO follow action + + return false; + }, + false // after + ); + set_child( * label );