Rather than using blunderbus show_all()s, only show widgets that need to be shown and only when they need to be. This fixes LP #172829
This commit is contained in:
parent
ff84c08617
commit
c7b8d30254
|
@ -451,7 +451,8 @@ class Terminator:
|
||||||
pane.pack1 (widget.get_box (), True, True)
|
pane.pack1 (widget.get_box (), True, True)
|
||||||
pane.pack2 (term2.get_box (), True, True)
|
pane.pack2 (term2.get_box (), True, True)
|
||||||
|
|
||||||
parent.show_all ()
|
pane.show ()
|
||||||
|
term2.get_box ().show ()
|
||||||
# insert the term reference into the list
|
# insert the term reference into the list
|
||||||
index = self.term_list.index (widget)
|
index = self.term_list.index (widget)
|
||||||
self.term_list.insert (index + 1, term2)
|
self.term_list.insert (index + 1, term2)
|
||||||
|
@ -468,6 +469,7 @@ class Terminator:
|
||||||
if not self.on_delete_event (parent, gtk.gdk.Event (gtk.gdk.DELETE)):
|
if not self.on_delete_event (parent, gtk.gdk.Event (gtk.gdk.DELETE)):
|
||||||
self.on_destroy_event (parent, gtk.gdk.Event (gtk.gdk.DESTROY))
|
self.on_destroy_event (parent, gtk.gdk.Event (gtk.gdk.DESTROY))
|
||||||
return
|
return
|
||||||
|
|
||||||
if isinstance (parent, gtk.Paned):
|
if isinstance (parent, gtk.Paned):
|
||||||
grandparent = parent.get_parent ()
|
grandparent = parent.get_parent ()
|
||||||
|
|
||||||
|
@ -494,8 +496,6 @@ class Terminator:
|
||||||
term._vte.grab_focus ()
|
term._vte.grab_focus ()
|
||||||
break
|
break
|
||||||
|
|
||||||
self.window.show_all ()
|
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
def closetermreq (self):
|
def closetermreq (self):
|
||||||
|
|
Loading…
Reference in New Issue