diff --git a/src/app/browser/main/tab/page/content/text.cpp b/src/app/browser/main/tab/page/content/text.cpp index f1398d8b..1338f924 100644 --- a/src/app/browser/main/tab/page/content/text.cpp +++ b/src/app/browser/main/tab/page/content/text.cpp @@ -12,11 +12,20 @@ Text::Text() void Text::set_gemini( const Glib::ustring & GEMTEXT ) { - set_child( + auto viewport = new Gtk::Viewport( // @TODO + NULL, //Gtk::Adjustment::H + NULL //Gtk::Adjustment::V + ); + + viewport->set_child( * new text::Gemini( // @TODO manage GEMTEXT ) ); + + set_child( + * viewport + ); } void Text::set_plain( diff --git a/src/app/browser/main/tab/page/content/text.hpp b/src/app/browser/main/tab/page/content/text.hpp index ee3fe8cb..7d9288f5 100644 --- a/src/app/browser/main/tab/page/content/text.hpp +++ b/src/app/browser/main/tab/page/content/text.hpp @@ -2,7 +2,9 @@ #define APP_BROWSER_MAIN_TAB_PAGE_CONTENT_TEXT_HPP #include +//#include @TODO #include +#include namespace app::browser::main::tab::page::content {