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

This commit is contained in:
Chris Jones 2009-02-20 11:26:43 +00:00
parent fd7aba1509
commit 118032dc35
1 changed files with 1 additions and 4 deletions

View File

@ -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