From 9ef386bb10c5d5ff560a7d3cfcdc66feeaaf21aa Mon Sep 17 00:00:00 2001 From: yggverse Date: Mon, 16 Sep 2024 08:57:43 +0300 Subject: [PATCH] use alignment mode enums --- .../main/tab/page/content/text/gemini/reader.cpp | 12 ++++-------- .../main/tab/page/content/text/gemini/reader.hpp | 2 -- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/src/app/browser/main/tab/page/content/text/gemini/reader.cpp b/src/app/browser/main/tab/page/content/text/gemini/reader.cpp index 0ff85ece..f0e1d613 100644 --- a/src/app/browser/main/tab/page/content/text/gemini/reader.cpp +++ b/src/app/browser/main/tab/page/content/text/gemini/reader.cpp @@ -87,6 +87,10 @@ Reader::Reader( } // Init widget + set_halign( + Gtk::Align::START + ); + set_valign( Gtk::Align::START ); @@ -99,14 +103,6 @@ Reader::Reader( MARGIN_END ); - set_xalign( - XALIGN - ); - - set_yalign( - YALIGN - ); - set_wrap( true ); diff --git a/src/app/browser/main/tab/page/content/text/gemini/reader.hpp b/src/app/browser/main/tab/page/content/text/gemini/reader.hpp index 74eb3526..9f0fb476 100644 --- a/src/app/browser/main/tab/page/content/text/gemini/reader.hpp +++ b/src/app/browser/main/tab/page/content/text/gemini/reader.hpp @@ -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