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 @@ @@ -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( @@ -14,7 +14,7 @@ Text::Text(
set_child(
* Gtk::make_managed<text::Gemini>(
VALUE
TEXT
)
);
@ -22,7 +22,11 @@ Text::Text( @@ -22,7 +22,11 @@ Text::Text(
case PLAIN:
// @TODO
set_child(
* Gtk::make_managed<text::Plain>(
TEXT
)
);
break;

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

@ -1,7 +1,6 @@ @@ -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 @@ -20,7 +19,7 @@ namespace app::browser::main::tab::page::content
Text(
const Type & TYPE,
const Glib::ustring & VALUE
const Glib::ustring & TEXT
);
};
}

Loading…
Cancel
Save