From fd4acdc7af0d719a0cdbf31dd9c05bab3e6a5740 Mon Sep 17 00:00:00 2001 From: oupson Date: Fri, 3 Mar 2023 12:02:55 +0100 Subject: [PATCH] Add todo in window.vala --- src/window.vala | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/window.vala b/src/window.vala index b8836a1..b1a957d 100644 --- a/src/window.vala +++ b/src/window.vala @@ -29,6 +29,7 @@ namespace Footerm { } construct { + this.view.close_page.connect (this.close_page); var action = new SimpleAction ("new_tab", null); action.activate.connect (() => { var a = view.append (new Footerm.Pane ()); @@ -39,5 +40,12 @@ namespace Footerm { var a = view.append (new Footerm.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; + } } }