From a8c59d5642fdd4cdc9de7fc013f171f0744fc21f Mon Sep 17 00:00:00 2001 From: yggverse Date: Fri, 13 Sep 2024 12:54:14 +0300 Subject: [PATCH] draft pango conversion method --- src/app/browser/main/tab/page/content/text/gemini.cpp | 10 +++++++++- src/app/browser/main/tab/page/content/text/gemini.hpp | 4 ++++ 2 files changed, 13 insertions(+), 1 deletion(-) 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 b4c1a530..b5547b65 100644 --- a/src/app/browser/main/tab/page/content/text/gemini.cpp +++ b/src/app/browser/main/tab/page/content/text/gemini.cpp @@ -13,7 +13,9 @@ Gemini::Gemini( ); auto label = Gtk::make_managed( // @TODO separated file? - GEMTEXT + to_pango( + GEMTEXT + ) ); // Init widget @@ -36,4 +38,10 @@ Gemini::Gemini( set_child( * label ); +} + +Glib::ustring Gemini::to_pango( + const Glib::ustring & GEMTEXT +) { + return GEMTEXT; // @TODO } \ No newline at end of file diff --git a/src/app/browser/main/tab/page/content/text/gemini.hpp b/src/app/browser/main/tab/page/content/text/gemini.hpp index 767c734f..3c9551c9 100644 --- a/src/app/browser/main/tab/page/content/text/gemini.hpp +++ b/src/app/browser/main/tab/page/content/text/gemini.hpp @@ -15,6 +15,10 @@ namespace app::browser::main::tab::page::content::text Gemini( const Glib::ustring & GEMTEXT ); + + static Glib::ustring to_pango( + const Glib::ustring & GEMTEXT + ); }; }