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:
parent
fd7aba1509
commit
118032dc35
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue