From 2d23789a74e3ab55ac6140e4a54590e153f7638b Mon Sep 17 00:00:00 2001 From: Arnout Engelen Date: Tue, 22 Dec 2009 00:30:17 +0100 Subject: [PATCH] Channel properties default 'apply' button 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/channel.py b/channel.py index ba6e7ef..c2e9b8c 100644 --- a/channel.py +++ b/channel.py @@ -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() -- 2.39.2