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

stable tagadd: modify the order of bottom buttons

Use add_button() method to add buttons.

Changeset 0d6f0ad6e760

Parent 44a8de2a670c

by Yuki KODAMA

Changes to one file · Browse files at 0d6f0ad6e760 Showing diff from parent 44a8de2a670c Diff from another changeset...

 
26
27
28
29
30
 
31
32
33
 
36
37
38
39
40
41
42
43
44
45
46
47
48
 
 
 
 
49
50
51
 
26
27
28
 
 
29
30
31
32
 
35
36
37
 
 
 
 
 
 
 
 
 
 
38
39
40
41
42
43
44
@@ -26,8 +26,7 @@
  """ Dialog to add tag to Mercurial repo """   def __init__(self, repo, tag='', rev=''):   """ Initialize the Dialog """ - gtk.Dialog.__init__(self, - buttons=(gtk.STOCK_CLOSE, gtk.RESPONSE_CLOSE)) + gtk.Dialog.__init__(self)   gtklib.set_tortoise_keys(self)   self.set_title(_('Tag - %s') % hglib.get_reponame(repo))   self.set_resizable(False) @@ -36,16 +35,10 @@
    self.repo = repo   - # add Add button - addbutton = gtk.Button(_('Add')) - addbutton.connect('clicked', lambda b: self.response(RESPONSE_ADD)) - self.action_area.pack_end(addbutton) - - # add Remove button - removebutton = gtk.Button(_('Remove')) - removebutton.connect('clicked', - lambda b: self.response(RESPONSE_REMOVE)) - self.action_area.pack_end(removebutton) + # add buttons + self.add_button(_('Add'), RESPONSE_ADD) + self.add_button(_('Remove'), RESPONSE_REMOVE) + self.add_button(gtk.STOCK_CLOSE, gtk.RESPONSE_CLOSE)     # persistent settings   self.settings = settings.Settings('tagadd')