enable plain text driver

This commit is contained in:
yggverse 2024-09-13 12:42:16 +03:00
parent b71eec6944
commit df7fe0273b
2 changed files with 9 additions and 6 deletions

View file

@ -1,12 +1,12 @@
#include "text.hpp"
#include "text/gemini.hpp"
// #include "text/plain.hpp" @TODO
#include "text/plain.hpp"
using namespace app::browser::main::tab::page::content;
Text::Text(
const Type & TYPE,
const Glib::ustring & VALUE
const Glib::ustring & TEXT
) {
switch (TYPE)
{
@ -14,7 +14,7 @@ Text::Text(
set_child(
* Gtk::make_managed<text::Gemini>(
VALUE
TEXT
)
);
@ -22,7 +22,11 @@ Text::Text(
case PLAIN:
// @TODO
set_child(
* Gtk::make_managed<text::Plain>(
TEXT
)
);
break;

View file

@ -1,7 +1,6 @@
#ifndef APP_BROWSER_MAIN_TAB_PAGE_CONTENT_TEXT_HPP
#define APP_BROWSER_MAIN_TAB_PAGE_CONTENT_TEXT_HPP
//#include <gtkmm/adjustment.h> @TODO
#include <glibmm/i18n.h>
#include <glibmm/ustring.h>
#include <gtkmm/scrolledwindow.h>
@ -20,7 +19,7 @@ namespace app::browser::main::tab::page::content
Text(
const Type & TYPE,
const Glib::ustring & VALUE
const Glib::ustring & TEXT
);
};
}