Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8, 0.8.1, and 0.8.2

gdialog: hook ctrl-enter to 'close' button of Prompt dialog

Changeset 16fc14deb9eb

Parent bc399466e295

by Steve Borho

Changes to one file · Browse files at 16fc14deb9eb Showing diff from parent bc399466e295 Diff from another changeset...

Change 1 of 1 Show Entire File hggtk/​gdialog.py Stacked
 
38
39
40
 
 
 
 
 
 
 
41
42
43
 
38
39
40
41
42
43
44
45
46
47
48
49
50
@@ -38,6 +38,13 @@
  gtk.MESSAGE_INFO, gtk.BUTTONS_CLOSE)   self.set_title(hglib.toutf(title))   self.set_markup('<b>' + hglib.toutf(message) + '</b>') + mod = shlib.get_thg_modifier() + key, modifier = gtk.accelerator_parse(mod+'Return') + accel_group = gtk.AccelGroup() + self.add_accel_group(accel_group) + buttons = self.get_children()[0].get_children()[1].get_children() + buttons[0].add_accelerator("clicked", accel_group, key, + modifier, gtk.ACCEL_VISIBLE)    class Confirm(SimpleMessage):   """Dialog returns gtk.RESPONSE_YES or gtk.RESPONSE_NO