mirror of https://github.com/oupson/FooTerm.git
Add todo in window.vala
This commit is contained in:
parent
33c93a90b6
commit
fd4acdc7af
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue