diff --git a/src/app/browser/main/tab/page/content/text/plain.cpp b/src/app/browser/main/tab/page/content/text/plain.cpp index 6042e65c..64b9c701 100644 --- a/src/app/browser/main/tab/page/content/text/plain.cpp +++ b/src/app/browser/main/tab/page/content/text/plain.cpp @@ -4,20 +4,36 @@ using namespace app::browser::main::tab::page::content::text; Plain::Plain( const Glib::ustring & TEXT +) : Gtk::Viewport( // add scrolled window features support + NULL, + NULL ) { - set_valign( - Gtk::Align::START + set_scroll_to_focus( + false ); - set_wrap( - true + auto label = Gtk::make_managed( // @TODO separated file? + TEXT ); - set_selectable( - true - ); + // Init widget + label->set_valign( + Gtk::Align::START + ); - set_text( - TEXT + label->set_wrap( + true + ); + + label->set_selectable( + true + ); + + label->set_use_markup( + false + ); + + set_child( + * label ); } \ No newline at end of file diff --git a/src/app/browser/main/tab/page/content/text/plain.hpp b/src/app/browser/main/tab/page/content/text/plain.hpp index 770c7143..c39f7dfc 100644 --- a/src/app/browser/main/tab/page/content/text/plain.hpp +++ b/src/app/browser/main/tab/page/content/text/plain.hpp @@ -4,10 +4,11 @@ #include #include #include +#include namespace app::browser::main::tab::page::content::text { - class Plain : public Gtk::Label + class Plain : public Gtk::Viewport { public: