diff --git a/terminatorlib/notebook.py b/terminatorlib/notebook.py index de67c2ac..540e6579 100644 --- a/terminatorlib/notebook.py +++ b/terminatorlib/notebook.py @@ -343,10 +343,6 @@ class Notebook(Container, Gtk.Notebook): self.set_current_page(tabpos) self.show_all() if maker.isinstance(term_widget, 'Terminal'): - #notify plugins of tab-change - dbg("emit tab-change for tabpos: %s " % tabpos) - term_widget.emit('tab-change', tabpos) - self.set_current_page(tabpos) widget.grab_focus() def wrapcloseterm(self, widget): diff --git a/terminatorlib/terminator.py b/terminatorlib/terminator.py index 4da976f7..95299a0c 100644 --- a/terminatorlib/terminator.py +++ b/terminatorlib/terminator.py @@ -185,13 +185,6 @@ class Terminator(Borg): for terminal in self.terminals: dbg('checking: %s (%s)' % (terminal.uuid.urn, terminal)) if terminal.uuid.urn == uuid: - if terminal.get_toplevel().is_child_notebook(): - topchild = terminal.get_toplevel().get_child() - current_page = topchild.get_current_page() - #we need to emit signal for plugin and retain same page - dbg("current_page for tab-change-signal:%s" % current_page) - terminal.emit('tab-change', current_page) - return terminal return None