Add todo in window.vala

This commit is contained in:
oupson 2023-03-03 12:02:55 +01:00
parent 33c93a90b6
commit fd4acdc7af
Signed by: oupson
GPG Key ID: 3BD88615552EFCB7
1 changed files with 8 additions and 0 deletions

View File

@ -29,6 +29,7 @@ namespace Footerm {
} }
construct { construct {
this.view.close_page.connect (this.close_page);
var action = new SimpleAction ("new_tab", null); var action = new SimpleAction ("new_tab", null);
action.activate.connect (() => { action.activate.connect (() => {
var a = view.append (new Footerm.Pane ()); var a = view.append (new Footerm.Pane ());
@ -39,5 +40,12 @@ namespace Footerm {
var a = view.append (new Footerm.Pane ()); var a = view.append (new Footerm.Pane ());
a.set_title ("New Pane"); a.set_title ("New Pane");
} }
private bool close_page (Adw.TabView tab_view, Adw.TabPage page) {
// TODO CLOSE CONNEXION FOR PANE
debug ("Close pane");
tab_view.close_page_finish (page, !page.get_pinned ());
return Gdk.EVENT_STOP;
}
} }
} }