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

cmenu: several changes while testing

overlay and context menu work (not all dialogs tested)

Changeset debb0f7ac47e

Parent 03d0ea785559

by Simon Heimberg

Changes to one file · Browse files at debb0f7ac47e Showing diff from parent 03d0ea785559 Diff from another changeset...

 
15
16
17
18
 
19
20
21
 
119
120
121
122
 
123
124
125
 
138
139
140
141
 
142
143
144
 
163
164
165
166
 
167
168
169
 
217
218
219
220
221
 
 
222
223
224
 
15
16
17
 
18
19
20
21
 
119
120
121
 
122
123
124
125
 
138
139
140
 
141
142
143
144
 
163
164
165
 
166
167
168
169
 
217
218
219
 
 
220
221
222
223
224
@@ -15,7 +15,7 @@
 import win32gui_struct  import win32api  import _winreg -from mercurial import hg +from mercurial import hg, util  from thgutil import *  import menuthg   @@ -119,7 +119,7 @@
    item, _ = win32gui_struct.PackMENUITEMINFO(**opt)   win32gui.InsertMenuItem(parent, pos, True, item) - self._handlers[idCmd] = ("", "") + self.menuitems[idCmd] = ("", "")   else:   fstate = win32con.MF_BYCOMMAND   if menu_info.state is False: @@ -138,7 +138,7 @@
    item, _ = win32gui_struct.PackMENUITEMINFO(**opt)   win32gui.InsertMenuItem(parent, pos, True, item) - self._handlers[idCmd] = (menu_info.helptext, menu_info.hgcmd) + self.menuitems[idCmd] = (menu_info.helptext, menu_info.hgcmd)   idCmd += 1   pos += 1   return idCmd @@ -163,7 +163,7 @@
  f = self.fnames[0]   cwd = os.path.isdir(f) and f or os.path.dirname(f)   - self._handlers = {} + self.menuitems = {}   if self.folder and self.fnames:   # get menus with drag-n-drop support   thgmenu += self.get_commands_dragdrop(self.fnames, self.folder) @@ -217,8 +217,8 @@
  else:   files.append(f)   self.fnames = files - gpopts = "--command %s " % hgcmd - if filelist: + gpopts = " --command %s " % hgcmd + if self.fnames:   fd, tmpfile = tempfile.mkstemp(prefix="tortoisehg_filelist_")   os.write(fd, "\n".join(self.fnames))   os.close(fd)