implement tab close action

This commit is contained in:
yggverse 2024-08-12 19:11:00 +03:00
parent dca780ca89
commit daa5edcead
4 changed files with 22 additions and 0 deletions

View File

@ -41,6 +41,14 @@ Browser::Browser(
)
);
add_action(
"tab_close",
sigc::mem_fun(
* this,
& Browser::main_tab_close
)
);
add_action(
"debug",
sigc::mem_fun(
@ -66,6 +74,11 @@ void Browser::main_tab_append()
main->tab_append();
};
void Browser::main_tab_close()
{
main->tab_close();
};
void Browser::debug()
{
gtk_window_set_interactive_debugging(

View File

@ -39,6 +39,8 @@ namespace app
void main_tab_append();
void main_tab_close();
void debug();
};
}

View File

@ -40,4 +40,9 @@ void Main::tab_append()
true,
true
);
};
void Main::tab_close()
{
tab->close();
};

View File

@ -23,6 +23,8 @@ namespace app::browser
~Main();
void tab_append();
void tab_close();
};
}