Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.9, 0.9.1, and 0.9.1.1

quickop: show result text and icon

Changeset a2c1445223d5

Parent 56192a3095bf

by Yuki KODAMA

Changes to one file · Browse files at a2c1445223d5 Showing diff from parent 56192a3095bf Diff from another changeset...

 
170
171
172
173
 
174
175
176
 
249
250
251
252
 
253
254
255
256
257
 
 
 
 
 
258
259
260
 
170
171
172
 
173
174
175
176
 
249
250
251
 
252
253
254
255
256
257
258
259
260
261
262
263
264
265
@@ -170,7 +170,7 @@
  self.cmd = hgcmd.CmdWidget()   self.cmd.show_all()   self.cmd.hide() - self.vbox.pack_start(self.cmd, True, True, 6) + self.vbox.pack_start(self.cmd, False, False, 6)     # abort button   self.abortbtn = self.add_button(_('Abort'), gtk.RESPONSE_CANCEL) @@ -249,12 +249,17 @@
    cmdline = ['hg', self.command, '--verbose'] + list   - def cmd_done(returncode): + def cmd_done(returncode, useraborted):   self.switch_to(MODE_NORMAL, cmd=False)   if returncode == 0:   shlib.shell_notify(list)   if not self.cmd.is_show_log():   self.response(gtk.RESPONSE_CLOSE) + self.cmd.set_result(_('Successfully'), style='ok') + elif useraborted: + self.cmd.set_result(_('Canceled'), style='error') + else: + self.cmd.set_result(_('Failed'), style='error')   self.switch_to(MODE_WORKING)   self.cmd.execute(cmdline, cmd_done)