Browse Source

enable plain text driver

CPP-GTK4
yggverse 2 months ago
parent
commit
df7fe0273b
  1. 12
      src/app/browser/main/tab/page/content/text.cpp
  2. 3
      src/app/browser/main/tab/page/content/text.hpp

12
src/app/browser/main/tab/page/content/text.cpp

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

3
src/app/browser/main/tab/page/content/text.hpp

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

Loading…
Cancel
Save