mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
add comments
This commit is contained in:
parent
e204460e59
commit
330252f8e0
2 changed files with 3 additions and 0 deletions
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
@ -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();
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue