Skip to content
Snippets Groups Projects
Commit 6e64f1ad authored by Antoine Beaupré's avatar Antoine Beaupré
Browse files

default the new dialog to "OK"

parent 865cb3c4
No related branches found
No related tags found
No related merge requests found
......@@ -203,6 +203,7 @@ class GameclockUI:
window = gtk.Dialog("Create new game", self.ui.window, gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT,
(gtk.STOCK_CANCEL, gtk.RESPONSE_REJECT,
gtk.STOCK_OK, gtk.RESPONSE_ACCEPT))
window.set_default_response(gtk.RESPONSE_ACCEPT)
window.connect("delete_event", lambda a, b: False)
window.connect("destroy", lambda a: window.destroy)
window.connect('response', self.handle_new_dialog)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment