From 73b2be2d7049cf03d5ebe0ee569fb1a169b6d0cc Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Fri, 9 Nov 2007 00:58:47 -0500 Subject: [PATCH] Handle both kinds of exit action --- terminator | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/terminator b/terminator index 974fc5d3..b62aeadc 100755 --- a/terminator +++ b/terminator @@ -108,8 +108,11 @@ class TerminatorTerm: self._vte.connect ("button-press-event", self.on_vte_button_press) self._vte.connect ("popup-menu", self.on_vte_popup_menu) - if self.gconf_client.get_string (self.profile + "/exit_action") == "restart": + exit_action = self.gconf_client.get_string (self.profile + "/exit_action") + if exit_action == "restart": self._vte.connect ("child-exited", self.spawn_child) + if exit_action == "close": + self._vte.connect ("child-exited", lambda close_term: self.term.closeterm (self)) self._vte.add_events (gtk.gdk.ENTER_NOTIFY_MASK) self._vte.connect ("enter_notify_event", self.on_vte_notify_enter)