[chirp_devel] [PATCH 1 of 5] [ui] set ok button the default with focus on instructions dialog
Marco Filippi IZ3GME
Wed Oct 9 02:22:42 PDT 2013
# HG changeset patch
# User Marco Filippi <iz3gme.marco at gmail.com>
# Date 1381310189 -7200
# Node ID fbb1c3a7be93999436a7c56b19221cbe78c0a58c
# Parent e895b97a86339b3152e55a56e454a1eeb8ad5e0e
[ui] set ok button the default with focus on instructions dialog
related to #1163
diff --git a/chirpui/mainapp.py b/chirpui/mainapp.py
--- a/chirpui/mainapp.py
+++ b/chirpui/mainapp.py
@@ -591,6 +591,10 @@
again = gtk.CheckButton(_("Don't show instructions for any radio again"))
again.show()
d.vbox.pack_start(again, 0, 0, 0)
+ h_button_box=d.vbox.get_children()[2]
+ ok_button=h_button_box.get_children()[0]
+ ok_button.grab_default()
+ ok_button.grab_focus()
d.run()
d.destroy()
CONF.set_bool("clone_instructions", again.get_active(), "noconfirm")
More information about the chirp_devel
mailing list