draft action dependencies

This commit is contained in:
yggverse 2024-09-08 03:49:08 +03:00
parent 45dc3b160a
commit c940e5f7df
18 changed files with 137 additions and 54 deletions

View file

@ -4,19 +4,25 @@
using namespace app::browser::main::tab::page::navigation;
History::History()
{
History::History(
const Glib::RefPtr<Gio::SimpleAction> & ACTION__HISTORY_BACK,
const Glib::RefPtr<Gio::SimpleAction> & ACTION__HISTORY_FORWARD
) {
add_css_class(
"linked" // merge children elements
);
historyBack = Gtk::make_managed<history::Back>();
historyBack = Gtk::make_managed<history::Back>(
ACTION__HISTORY_BACK
);
append(
* historyBack
);
historyForward = Gtk::make_managed<history::Forward>();
historyForward = Gtk::make_managed<history::Forward>(
ACTION__HISTORY_FORWARD
);
append(
* historyForward