]> git.0d.be Git - jack_mixer.git/commitdiff
Channel properties default 'apply' button
authorArnout Engelen <arnouten@localhost.(none)>
Mon, 21 Dec 2009 23:30:17 +0000 (00:30 +0100)
committerArnout Engelen <arnouten@bird.(none)>
Tue, 29 Dec 2009 17:36:31 +0000 (18:36 +0100)
Mark the 'apply' button as 'default', so it will be triggered when you hit
'enter' in the input fields.

Fixes bug #14981: when changing channel properties, enter does no apply the changes

channel.py

index ba6e7ef28391e4095a99c918f327dad8e126d4f3..c2e9b8c889485bc8d23799f22aeee95a94d93caa 100644 (file)
@@ -760,6 +760,7 @@ class ChannelPropertiesDialog(gtk.Dialog):
 
         self.add_button(gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL)
         self.ok_button = self.add_button(gtk.STOCK_APPLY, gtk.RESPONSE_APPLY)
+        self.set_default_response(gtk.RESPONSE_APPLY);
 
         self.create_ui()
         self.fill_ui()