Browse Source

use alignment mode enums

CPP-GTK4
yggverse 2 months ago
parent
commit
9ef386bb10
  1. 12
      src/app/browser/main/tab/page/content/text/gemini/reader.cpp
  2. 2
      src/app/browser/main/tab/page/content/text/gemini/reader.hpp

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

@ -87,6 +87,10 @@ Reader::Reader( @@ -87,6 +87,10 @@ Reader::Reader(
}
// Init widget
set_halign(
Gtk::Align::START
);
set_valign(
Gtk::Align::START
);
@ -99,14 +103,6 @@ Reader::Reader( @@ -99,14 +103,6 @@ Reader::Reader(
MARGIN_END
);
set_xalign(
XALIGN
);
set_yalign(
YALIGN
);
set_wrap(
true
);

2
src/app/browser/main/tab/page/content/text/gemini/reader.hpp

@ -74,8 +74,6 @@ namespace app::browser::main::tab::page::content::text::gemini @@ -74,8 +74,6 @@ namespace app::browser::main::tab::page::content::text::gemini
// Defaults
const int MARGIN_START = 8;
const int MARGIN_END = 8;
const int XALIGN = 0;
const int YALIGN = 0;
/*
* Reader class API

Loading…
Cancel
Save