From 118032dc357fd6c2f9c0f92b2218a5db9bb64d43 Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Fri, 20 Feb 2009 11:26:43 +0000 Subject: [PATCH] Swap the Cancel button for a Close one, and stop Apply from closing the profile editor. This way makes much more sense. Closes LP #329977 --- terminatorlib/prefs_profile.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/terminatorlib/prefs_profile.py b/terminatorlib/prefs_profile.py index d4df82ae..0849b584 100644 --- a/terminatorlib/prefs_profile.py +++ b/terminatorlib/prefs_profile.py @@ -61,7 +61,7 @@ class ProfileEditor: self.butbox = gtk.HButtonBox() self.applybut = gtk.Button(stock=gtk.STOCK_APPLY) self.applybut.connect ("clicked", self.apply) - self.cancelbut = gtk.Button(stock=gtk.STOCK_CANCEL) + self.cancelbut = gtk.Button(stock=gtk.STOCK_CLOSE) self.cancelbut.connect ("clicked", self.cancel) self.box.pack_start(self.notebook, False, False) @@ -338,9 +338,6 @@ class ProfileEditor: newbindings[binding[0]] = binding[1] self.term.keybindings.configure (newbindings) - # We're not actually cancelling, but since all it does is close the window, we might as well use it - self.cancel(None) - def cancel (self, data): self.window.destroy() self.term.options = None