diff --git a/src/app/browser/header/tab.cpp b/src/app/browser/header/tab.cpp index e73a1e34..967b49d2 100644 --- a/src/app/browser/header/tab.cpp +++ b/src/app/browser/header/tab.cpp @@ -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; \ No newline at end of file diff --git a/src/app/browser/header/tab.hpp b/src/app/browser/header/tab.hpp index de26112e..4a6fcb5b 100644 --- a/src/app/browser/header/tab.hpp +++ b/src/app/browser/header/tab.hpp @@ -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");