Browse Source

create tab history actions

CPP-GTK4
yggverse 2 months ago
parent
commit
c4e43f737e
  1. 16
      src/app/browser.cpp
  2. 2
      src/app/browser/main/tab/page/navbar/history/back.cpp
  3. 2
      src/app/browser/main/tab/page/navbar/history/forward.cpp

16
src/app/browser.cpp

@ -110,6 +110,22 @@ Browser::Browser( @@ -110,6 +110,22 @@ Browser::Browser(
);
}
);
add_action(
"tab_history_back",
[this]
{
// @TODO
}
);
add_action(
"tab_history_forward",
[this]
{
// @TODO
}
);
}
Browser::~Browser()

2
src/app/browser/main/tab/page/navbar/history/back.cpp

@ -5,7 +5,7 @@ using namespace app::browser::main::tab::page::navbar::history; @@ -5,7 +5,7 @@ using namespace app::browser::main::tab::page::navbar::history;
Back::Back()
{
set_action_name(
"tab.back"
"win.tab_history_back"
);
set_icon_name(

2
src/app/browser/main/tab/page/navbar/history/forward.cpp

@ -5,7 +5,7 @@ using namespace app::browser::main::tab::page::navbar::history; @@ -5,7 +5,7 @@ using namespace app::browser::main::tab::page::navbar::history;
Forward::Forward()
{
set_action_name(
"tab.forward"
"win.tab_history_forward"
);
set_icon_name(

Loading…
Cancel
Save