From fe0586a054a643a6f59a9821df675d30abf1ef61 Mon Sep 17 00:00:00 2001 From: yggverse Date: Tue, 27 Aug 2024 16:22:48 +0300 Subject: [PATCH] add subtitle setters --- src/app/browser/header.cpp | 8 ++++++++ src/app/browser/header.hpp | 4 ++++ src/app/browser/header/main.cpp | 8 ++++++++ src/app/browser/header/main.hpp | 4 ++++ 4 files changed, 24 insertions(+) diff --git a/src/app/browser/header.cpp b/src/app/browser/header.cpp index 193fe257..90058c60 100644 --- a/src/app/browser/header.cpp +++ b/src/app/browser/header.cpp @@ -47,4 +47,12 @@ void Header::set_title( main->set_title( text ); +} + +void Header::set_subtitle( + const Glib::ustring text +) { + main->set_subtitle( + text + ); } \ No newline at end of file diff --git a/src/app/browser/header.hpp b/src/app/browser/header.hpp index b8376e5c..c626e818 100644 --- a/src/app/browser/header.hpp +++ b/src/app/browser/header.hpp @@ -28,6 +28,10 @@ namespace app::browser void set_title( const Glib::ustring text ); + + void set_subtitle( + const Glib::ustring text + ); }; } diff --git a/src/app/browser/header/main.cpp b/src/app/browser/header/main.cpp index 52a33df9..e388e5bf 100644 --- a/src/app/browser/header/main.cpp +++ b/src/app/browser/header/main.cpp @@ -41,4 +41,12 @@ void Main::set_title( mainTitle->set( TEXT ); +} + +void Main::set_subtitle( + const Glib::ustring & TEXT +) { + mainSubtitle->set( + TEXT + ); } \ No newline at end of file diff --git a/src/app/browser/header/main.hpp b/src/app/browser/header/main.hpp index 6d701d60..3048261c 100644 --- a/src/app/browser/header/main.hpp +++ b/src/app/browser/header/main.hpp @@ -28,6 +28,10 @@ namespace app::browser::header void set_title( const Glib::ustring & TEXT ); + + void set_subtitle( + const Glib::ustring & TEXT + ); }; }