|
|
@ -4,19 +4,26 @@ |
|
|
|
using namespace app::browser::main::tab::page::content::text; |
|
|
|
using namespace app::browser::main::tab::page::content::text; |
|
|
|
|
|
|
|
|
|
|
|
Gemini::Gemini( |
|
|
|
Gemini::Gemini( |
|
|
|
const Glib::ustring & GEMTEXT |
|
|
|
const Glib::ustring & GEMTEXT, |
|
|
|
|
|
|
|
Glib::ustring & title |
|
|
|
) : Gtk::Viewport( // add scrolled window features to childs
|
|
|
|
) : Gtk::Viewport( // add scrolled window features to childs
|
|
|
|
NULL, |
|
|
|
NULL, |
|
|
|
NULL |
|
|
|
NULL |
|
|
|
) { |
|
|
|
) { |
|
|
|
|
|
|
|
// Init components
|
|
|
|
|
|
|
|
auto geminiReader = Gtk::make_managed<gemini::Reader>( |
|
|
|
|
|
|
|
GEMTEXT |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Grab title
|
|
|
|
|
|
|
|
title = geminiReader->get_title(); |
|
|
|
|
|
|
|
|
|
|
|
// Init widget
|
|
|
|
// Init widget
|
|
|
|
set_scroll_to_focus( |
|
|
|
set_scroll_to_focus( |
|
|
|
false |
|
|
|
false |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
set_child( |
|
|
|
set_child( |
|
|
|
* Gtk::make_managed<gemini::Reader>( |
|
|
|
* geminiReader |
|
|
|
GEMTEXT |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |