add comments

This commit is contained in:
yggverse 2024-08-27 14:58:34 +03:00
parent e204460e59
commit 330252f8e0
2 changed files with 3 additions and 0 deletions

View File

@ -37,5 +37,6 @@ void Subtitle::set(
TEXT TEXT
); );
// Use GTK3 header behaviour
if (get_text().empty()) hide(); else show(); if (get_text().empty()) hide(); else show();
} }

View File

@ -34,9 +34,11 @@ Title::~Title() = default;
void Title::set( void Title::set(
const Glib::ustring & TEXT const Glib::ustring & TEXT
) { ) {
// Append app name postfix
set_text( set_text(
TEXT.empty() || TEXT == DEFAULT_TEXT ? DEFAULT_TEXT : TEXT + " - " + DEFAULT_TEXT TEXT.empty() || TEXT == DEFAULT_TEXT ? DEFAULT_TEXT : TEXT + " - " + DEFAULT_TEXT
); );
// Use GTK3 header behaviour
if (get_text().empty()) hide(); else show(); if (get_text().empty()) hide(); else show();
} }