Changeset 567a825b36da…
Parent 7044fed755b8…
by
Changes to one file · Browse files at 567a825b36da Showing diff from parent 7044fed755b8 Diff from another changeset...
@@ -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():
|
Loading...