diff --git a/src/newpane.vala b/src/newpane.vala index ee51329..66aa5ab 100644 --- a/src/newpane.vala +++ b/src/newpane.vala @@ -35,15 +35,20 @@ namespace Footerm { public signal void on_server_selected(Footerm.Model.Server server); + public signal void title_changed(string new_title); + private Footerm.Services.Config config; construct { this.new_server.on_new_server.connect((server) => { this.newpane_stack.set_visible_child(server_list.get_parent()); server_list.add(this.build_action_row(server)); + this.title_changed("New Pane"); }); + this.newpane_add_button.clicked.connect(() => { this.newpane_stack.set_visible_child(new_server.get_parent()); + this.title_changed("Create a new server"); }); try { diff --git a/src/pane.vala b/src/pane.vala index 26dcf56..e54f5a3 100644 --- a/src/pane.vala +++ b/src/pane.vala @@ -33,6 +33,7 @@ namespace Footerm { public signal void title_changed (string new_title); construct { + this.new_pane.title_changed.connect ((s) => this.title_changed (s)); this.new_pane.on_server_selected.connect ((s) => { this.footerm_pane_stack.set_visible_child (this.terminal_pane); this.title_changed (s.name);