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

archive: cleanup codes

It uses drop-down combo for ellipsizing destination path,
but, I don't know why, it seems like no effect.

Changeset 567a825b36da

Parent 7044fed755b8

by Yuki KODAMA

Changes to one file · Browse files at 567a825b36da Showing diff from parent 7044fed755b8 Diff from another changeset...

 
72
73
74
75
76
77
78
 
79
80
81
 
82
83
84
85
86
87
88
89
90
91
92
93
 
164
165
166
167
168
169
170
171
172
173
 
72
73
74
 
 
 
 
75
76
 
 
77
78
79
 
 
 
 
 
 
 
80
81
82
 
153
154
155
 
 
 
 
156
157
158
@@ -72,22 +72,11 @@
  table.add_row(_('Archive revision:'), combo)     ## dest combo & browse button - - ### create drop-down list for source paths - self.destlist = gtk.ListStore(str) - destcombo = gtk.ComboBoxEntry(self.destlist, 0) + destcombo = gtk.combo_box_entry_new_text()   self.destentry = destcombo.get_child() - self.destentry.set_text(self.get_default_path()) - self.destentry.set_position(-1) + self.destentry.set_text(repo.root)   self.destentry.set_width_chars(46)   - ### replace the drop-down widget so we can modify it's properties - destcombo.clear() - cell = gtk.CellRendererText() - cell.set_property('ellipsize', pango.ELLIPSIZE_MIDDLE) - destcombo.pack_start(cell) - destcombo.add_attribute(cell, 'text', 0) -   destbrowse = gtk.Button(_('Browse...'))   destbrowse.connect('clicked', self.browse_clicked)   @@ -164,10 +153,6 @@
  newpath += select['ext']   self.destentry.set_text(newpath)   - def get_default_path(self): - """Return the default destination path""" - return hglib.toutf(os.getcwd()) -   def get_selected_archive_type(self):   """Return a dictionary describing the selected archive type"""   if self.tarradio.get_active():