mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
enable plain text driver
This commit is contained in:
parent
b71eec6944
commit
df7fe0273b
2 changed files with 9 additions and 6 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
);
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue