Merge pull request #849 from vssdeo/835-crash-after-unzooming-a-single-terminal-inside-a-tab
[bug 835] 835-crash-after-unzooming-a-single-terminal-inside-a-tab #835
This commit is contained in:
commit
594537f9ed
|
@ -343,10 +343,6 @@ class Notebook(Container, Gtk.Notebook):
|
||||||
self.set_current_page(tabpos)
|
self.set_current_page(tabpos)
|
||||||
self.show_all()
|
self.show_all()
|
||||||
if maker.isinstance(term_widget, 'Terminal'):
|
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()
|
widget.grab_focus()
|
||||||
|
|
||||||
def wrapcloseterm(self, widget):
|
def wrapcloseterm(self, widget):
|
||||||
|
|
|
@ -185,13 +185,6 @@ class Terminator(Borg):
|
||||||
for terminal in self.terminals:
|
for terminal in self.terminals:
|
||||||
dbg('checking: %s (%s)' % (terminal.uuid.urn, terminal))
|
dbg('checking: %s (%s)' % (terminal.uuid.urn, terminal))
|
||||||
if terminal.uuid.urn == uuid:
|
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 terminal
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue