Browse Source

draft pango conversion method

CPP-GTK4
yggverse 2 months ago
parent
commit
a8c59d5642
  1. 10
      src/app/browser/main/tab/page/content/text/gemini.cpp
  2. 4
      src/app/browser/main/tab/page/content/text/gemini.hpp

10
src/app/browser/main/tab/page/content/text/gemini.cpp

@ -13,7 +13,9 @@ Gemini::Gemini( @@ -13,7 +13,9 @@ Gemini::Gemini(
);
auto label = Gtk::make_managed<Gtk::Label>( // @TODO separated file?
GEMTEXT
to_pango(
GEMTEXT
)
);
// Init widget
@ -36,4 +38,10 @@ Gemini::Gemini( @@ -36,4 +38,10 @@ Gemini::Gemini(
set_child(
* label
);
}
Glib::ustring Gemini::to_pango(
const Glib::ustring & GEMTEXT
) {
return GEMTEXT; // @TODO
}

4
src/app/browser/main/tab/page/content/text/gemini.hpp

@ -15,6 +15,10 @@ namespace app::browser::main::tab::page::content::text @@ -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
);
};
}

Loading…
Cancel
Save