Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.0, 1.0.1, and 1.0.2

gtklib: add options to prevent connecting with default handlers

Changeset 0d58aef66e55

Parent d1369e992896

by Yuki KODAMA

Changes to one file · Browse files at 0d58aef66e55 Showing diff from parent d1369e992896 Diff from another changeset...

 
39
40
41
42
 
43
44
45
 
65
66
67
68
69
 
 
 
70
71
72
 
39
40
41
 
42
43
44
45
 
65
66
67
 
 
68
69
70
71
72
73
@@ -39,7 +39,7 @@
  else:   return '<Control>'   -def set_tortoise_keys(window): +def set_tortoise_keys(window, connect=True):   'Set default TortoiseHg keyboard accelerators'   if sys.platform == 'darwin':   mask = gtk.accelerator_get_default_mod_mask() @@ -65,8 +65,9 @@
  gtk.ACCEL_VISIBLE)     # connect ctrl-w and ctrl-q to every window - window.connect('thg-close', thgclose) - window.connect('thg-exit', thgexit) + if connect: + window.connect('thg-close', thgclose) + window.connect('thg-exit', thgexit)     return accelgroup, mod