use header const

This commit is contained in:
yggverse 2024-08-12 14:45:40 +03:00
parent b9079bd575
commit 20766c00f6
2 changed files with 5 additions and 4 deletions

View File

@ -4,6 +4,10 @@ using namespace app::browser::header;
Tab::Tab()
{
set_action_name(
ACTION
);
set_tooltip_text(
TOOLTIP
);
@ -11,10 +15,6 @@ Tab::Tab()
set_icon_name(
ICON
);
set_action_name(
"win.tab"
);
}
Tab::~Tab() = default;

View File

@ -10,6 +10,7 @@ namespace app::browser::header
{
public:
const char* ACTION = "win.tab";
const char* ICON = "tab-new-symbolic";
const char* TOOLTIP = _("New tab");