From 20766c00f619e65ffd5b67a47c5e54777d41a3e2 Mon Sep 17 00:00:00 2001 From: yggverse Date: Mon, 12 Aug 2024 14:45:40 +0300 Subject: [PATCH] use header const --- src/app/browser/header/tab.cpp | 8 ++++---- src/app/browser/header/tab.hpp | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) 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");