mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
delegate close action to the browser window
This commit is contained in:
parent
881e1b78d6
commit
3f4a5536ca
6 changed files with 23 additions and 15 deletions
|
|
@ -151,6 +151,20 @@ Browser::Browser(
|
|||
"<Primary>Right"
|
||||
);
|
||||
|
||||
// Init actions
|
||||
const auto ACTION__QUIT = add_action(
|
||||
"quit",
|
||||
[this]
|
||||
{
|
||||
close();
|
||||
}
|
||||
);
|
||||
|
||||
APP->set_accel_for_action(
|
||||
"win.quit",
|
||||
"<Primary>q"
|
||||
);
|
||||
|
||||
// Init widget
|
||||
set_title(
|
||||
_("Yoda")
|
||||
|
|
@ -164,6 +178,7 @@ Browser::Browser(
|
|||
// Init components
|
||||
browserHeader = Gtk::make_managed<browser::Header>(
|
||||
ACTION__DEBUG,
|
||||
ACTION__QUIT,
|
||||
ACTION__MAIN_TAB_APPEND,
|
||||
ACTION__MAIN_TAB_CLOSE_ACTIVE,
|
||||
ACTION__MAIN_TAB_CLOSE_ALL,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue