Browse Source

rename tools menu

CPP-GTK4
yggverse 3 months ago
parent
commit
d0859d7243
  1. 2
      po/POTFILES.in
  2. 8
      src/app/browser.cpp
  3. 8
      src/app/browser/header/menu.cpp

2
po/POTFILES.in

@ -6,7 +6,7 @@ src/app/browser/header/main/subtitle.cpp @@ -6,7 +6,7 @@ src/app/browser/header/main/subtitle.cpp
src/app/browser/header/main/title.cpp
src/app/browser/header/menu.cpp
src/app/browser/header/menu/tab.cpp
src/app/browser/header/menu/tools.cpp
src/app/browser/header/menu/tool.cpp
src/app/browser/header/tab.cpp
src/app/browser/main.cpp
src/app/browser/main/tab.cpp

8
src/app/browser.cpp

@ -50,8 +50,8 @@ Browser::Browser( @@ -50,8 +50,8 @@ Browser::Browser(
}
);
const auto ACTION__TOOLS_DEBUG = add_action(
"tools_debug",
const auto ACTION__TOOL_DEBUG = add_action(
"tool_debug",
[this]
{
// @TODO https://gitlab.gnome.org/GNOME/gtkmm/-/commit/5f3b82537d3daad7bda59dd01e719788070f4b6c
@ -179,7 +179,7 @@ Browser::Browser( @@ -179,7 +179,7 @@ Browser::Browser(
// Init components
browserHeader = Gtk::make_managed<browser::Header>(
ACTION__TOOLS_DEBUG,
ACTION__TOOL_DEBUG,
ACTION__QUIT,
ACTION__SESSION_CLEAN,
ACTION__SESSION_RESTORE,
@ -253,7 +253,7 @@ Browser::Browser( @@ -253,7 +253,7 @@ Browser::Browser(
);
APP->set_accel_for_action(
"win.tools_debug",
"win.tool_debug",
"<Primary>i"
);

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

@ -152,9 +152,9 @@ Menu::Menu( @@ -152,9 +152,9 @@ Menu::Menu(
MENU__TAB
);
const auto MENU__TOOLS = Gio::Menu::create();
const auto MENU__TOOL = Gio::Menu::create();
MENU__TOOLS->append(
MENU__TOOL->append(
_("Debug"),
get_action_detailed_name(
ACTION__DEBUG
@ -162,8 +162,8 @@ Menu::Menu( @@ -162,8 +162,8 @@ Menu::Menu(
);
MENU->append_submenu(
_("Tools"),
MENU__TOOLS
_("Tool"),
MENU__TOOL
);
MENU->append(

Loading…
Cancel
Save