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

tagadd: respect several options in dialog title

Changeset e53c0f545c27

Parent e82682f54ffc

by Yuki KODAMA

Changes to one file · Browse files at e53c0f545c27 Showing diff from parent e82682f54ffc Diff from another changeset...

 
23
24
25
26
27
28
 
 
29
 
30
31
32
33
 
 
34
35
36
 
44
45
46
47
48
49
50
51
 
23
24
25
 
 
 
26
27
28
29
30
31
32
33
34
35
36
37
38
 
46
47
48
 
 
49
50
51
@@ -23,14 +23,16 @@
  """ Dialog to add tag to Mercurial repo """   def __init__(self, repo, tag='', rev=''):   """ Initialize the Dialog """ - root = hglib.toutf(os.path.basename(repo.root)) - gtk.Dialog.__init__(self, title=_('TortoiseHg Tag - %s') % root, - buttons=(gtk.STOCK_CLOSE, gtk.RESPONSE_CLOSE)) + gtk.Dialog.__init__(self, + buttons=(gtk.STOCK_CLOSE, gtk.RESPONSE_CLOSE))   gtklib.set_tortoise_keys(self) + self.set_title(_('Tag - %s') % hglib.get_reponame(repo))   self.set_resizable(False)   self.set_has_separator(False)   self.connect('response', self.dialog_response)   + self.repo = repo +   # add Add button   addbutton = gtk.Button(_('Add'))   addbutton.connect('clicked', lambda b: self._do_add_tag()) @@ -44,8 +46,6 @@
  # persistent settings   self.settings = settings.Settings('tagadd')   - self.repo = repo -   # top layout table   table = gtklib.LayoutTable()   self.vbox.pack_start(table, True, True, 2)