mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-02-06 16:34:13 +00:00
implement tab close action
This commit is contained in:
parent
dca780ca89
commit
daa5edcead
@ -41,6 +41,14 @@ Browser::Browser(
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
add_action(
|
||||||
|
"tab_close",
|
||||||
|
sigc::mem_fun(
|
||||||
|
* this,
|
||||||
|
& Browser::main_tab_close
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
add_action(
|
add_action(
|
||||||
"debug",
|
"debug",
|
||||||
sigc::mem_fun(
|
sigc::mem_fun(
|
||||||
@ -66,6 +74,11 @@ void Browser::main_tab_append()
|
|||||||
main->tab_append();
|
main->tab_append();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
void Browser::main_tab_close()
|
||||||
|
{
|
||||||
|
main->tab_close();
|
||||||
|
};
|
||||||
|
|
||||||
void Browser::debug()
|
void Browser::debug()
|
||||||
{
|
{
|
||||||
gtk_window_set_interactive_debugging(
|
gtk_window_set_interactive_debugging(
|
||||||
|
@ -39,6 +39,8 @@ namespace app
|
|||||||
|
|
||||||
void main_tab_append();
|
void main_tab_append();
|
||||||
|
|
||||||
|
void main_tab_close();
|
||||||
|
|
||||||
void debug();
|
void debug();
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -40,4 +40,9 @@ void Main::tab_append()
|
|||||||
true,
|
true,
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
void Main::tab_close()
|
||||||
|
{
|
||||||
|
tab->close();
|
||||||
};
|
};
|
@ -23,6 +23,8 @@ namespace app::browser
|
|||||||
~Main();
|
~Main();
|
||||||
|
|
||||||
void tab_append();
|
void tab_append();
|
||||||
|
|
||||||
|
void tab_close();
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user