mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
implement tab close action
This commit is contained in:
parent
dca780ca89
commit
daa5edcead
4 changed files with 22 additions and 0 deletions
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -39,6 +39,8 @@ namespace app
|
|||
|
||||
void main_tab_append();
|
||||
|
||||
void main_tab_close();
|
||||
|
||||
void debug();
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -40,4 +40,9 @@ void Main::tab_append()
|
|||
true,
|
||||
true
|
||||
);
|
||||
};
|
||||
|
||||
void Main::tab_close()
|
||||
{
|
||||
tab->close();
|
||||
};
|
||||
|
|
@ -23,6 +23,8 @@ namespace app::browser
|
|||
~Main();
|
||||
|
||||
void tab_append();
|
||||
|
||||
void tab_close();
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue