Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.4rc1, 0.4rc2, and 0.4rc3

hggtk/clone: make src path combo box prefilled with symbolic paths

Changeset f40e8e960740

Parent 2a1693b4e5ab

by TK Soh

Changes to one file · Browse files at f40e8e960740 Showing diff from parent 2a1693b4e5ab Diff from another changeset...

Change 1 of 1 Show Entire File hggtk/​clone.py Stacked
 
80
81
82
83
 
 
 
 
84
85
86
87
88
 
89
90
91
 
 
 
 
92
93
94
 
80
81
82
 
83
84
85
86
87
88
89
90
 
91
92
93
94
95
96
97
98
99
100
101
@@ -80,15 +80,22 @@
  lbl = gtk.Label("Source Path:")   lbl.set_property("width-chars", ewidth)   lbl.set_alignment(0, 0.5) - self._src_input = gtk.Entry() + + self._srclist = gtk.ListStore(str) + self._srclistbox = gtk.ComboBoxEntry(self._srclist, 0) + self._src_input = self._srclistbox.get_child()   self._src_input.set_text(self._src_path)   self._btn_src_browse = gtk.Button("Browse...")   self._btn_src_browse.connect('clicked', self._btn_src_clicked)   srcbox.pack_start(lbl, False, False) - srcbox.pack_start(self._src_input, True, True) + srcbox.pack_start(self._srclistbox, True, True)   srcbox.pack_end(self._btn_src_browse, False, False, 5)   vbox.pack_start(srcbox, False, False, 2)   + # add pre-defined src paths to pull-down list + paths = [x[1] for x in ui.ui().configitems('paths')] + paths.sort() + for p in paths: self._srclist.append([p])     # clone destination   destbox = gtk.HBox()