mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-03-12 05:31:06 +00:00
draft viewport integration
This commit is contained in:
parent
bbc1046c2a
commit
c5919e71a2
@ -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(
|
||||
|
@ -2,7 +2,9 @@
|
||||
#define APP_BROWSER_MAIN_TAB_PAGE_CONTENT_TEXT_HPP
|
||||
|
||||
#include <glibmm/ustring.h>
|
||||
//#include <gtkmm/adjustment.h> @TODO
|
||||
#include <gtkmm/scrolledwindow.h>
|
||||
#include <gtkmm/viewport.h>
|
||||
|
||||
namespace app::browser::main::tab::page::content
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user