Browse Source

use header const

CPP-GTK4
yggverse 4 months ago
parent
commit
20766c00f6
  1. 8
      src/app/browser/header/tab.cpp
  2. 1
      src/app/browser/header/tab.hpp

8
src/app/browser/header/tab.cpp

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

1
src/app/browser/header/tab.hpp

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

Loading…
Cancel
Save