Browse Source

update paddings

CPP-GTK4
yggverse 2 months ago
parent
commit
8a65c7aed9
  1. 96
      src/app/browser.cpp

96
src/app/browser.cpp

@ -89,57 +89,56 @@ Browser::Browser(
false false
); );
// Tab page navigation actions const auto ACTION__MAIN_TAB_PAGE_NAVIGATION_UPDATE = add_action(
const auto ACTION__MAIN_TAB_PAGE_NAVIGATION_UPDATE = add_action( "main_tab_page_navigation_update",
"main_tab_page_navigation_update", [this]
[this] {
{ browserMain->tab_page_navigation_update();
browserMain->tab_page_navigation_update(); }
} );
ACTION__MAIN_TAB_PAGE_NAVIGATION_UPDATE->set_enabled(
false
); );
ACTION__MAIN_TAB_PAGE_NAVIGATION_UPDATE->set_enabled( APP->set_accel_for_action(
false "win.main_tab_page_navigation_update",
); "<Primary>r"
);
APP->set_accel_for_action( const auto ACTION__MAIN_TAB_PAGE_NAVIGATION_HISTORY_BACK = add_action(
"win.main_tab_page_navigation_update", "main_tab_page_navigation_history_back",
"<Primary>r" [this]
); {
browserMain->tab_page_navigation_history_back();
}
);
const auto ACTION__MAIN_TAB_PAGE_NAVIGATION_HISTORY_BACK = add_action( ACTION__MAIN_TAB_PAGE_NAVIGATION_HISTORY_BACK->set_enabled(
"main_tab_page_navigation_history_back", false
[this]
{
browserMain->tab_page_navigation_history_back();
}
); );
ACTION__MAIN_TAB_PAGE_NAVIGATION_HISTORY_BACK->set_enabled( APP->set_accel_for_action(
false "win.main_tab_page_navigation_history_back",
); "<Primary>Left"
);
APP->set_accel_for_action( const auto ACTION__MAIN_TAB_PAGE_NAVIGATION_HISTORY_FORWARD = add_action(
"win.main_tab_page_navigation_history_back", "main_tab_page_navigation_history_forward",
"<Primary>Left" [this]
); {
browserMain->tab_page_navigation_history_forward();
}
);
const auto ACTION__MAIN_TAB_PAGE_NAVIGATION_HISTORY_FORWARD = add_action( ACTION__MAIN_TAB_PAGE_NAVIGATION_HISTORY_FORWARD->set_enabled(
"main_tab_page_navigation_history_forward", false
[this]
{
browserMain->tab_page_navigation_history_forward();
}
); );
ACTION__MAIN_TAB_PAGE_NAVIGATION_HISTORY_FORWARD->set_enabled( APP->set_accel_for_action(
false "win.main_tab_page_navigation_history_forward",
); "<Primary>Right"
);
APP->set_accel_for_action(
"win.main_tab_page_navigation_history_forward",
"<Primary>Right"
);
// Init widget // Init widget
set_title( set_title(
@ -151,14 +150,13 @@ Browser::Browser(
HEIGHT HEIGHT
); );
// Init header widget // Init components
browserHeader = Gtk::make_managed<browser::Header>(); browserHeader = Gtk::make_managed<browser::Header>();
set_titlebar( set_titlebar(
* browserHeader * browserHeader
); );
// Init main widget
browserMain = Gtk::make_managed<browser::Main>( browserMain = Gtk::make_managed<browser::Main>(
ACTION__REFRESH, ACTION__REFRESH,
ACTION__MAIN_TAB_CLOSE, ACTION__MAIN_TAB_CLOSE,
@ -167,7 +165,7 @@ Browser::Browser(
ACTION__MAIN_TAB_PAGE_NAVIGATION_UPDATE ACTION__MAIN_TAB_PAGE_NAVIGATION_UPDATE
); );
set_child( set_child(
* browserMain * browserMain
); );
} }
Loading…
Cancel
Save