Browse Source

rename tools menu

CPP-GTK4
yggverse 2 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
src/app/browser/header/main/title.cpp src/app/browser/header/main/title.cpp
src/app/browser/header/menu.cpp src/app/browser/header/menu.cpp
src/app/browser/header/menu/tab.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/header/tab.cpp
src/app/browser/main.cpp src/app/browser/main.cpp
src/app/browser/main/tab.cpp src/app/browser/main/tab.cpp

8
src/app/browser.cpp

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

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

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

Loading…
Cancel
Save