Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8, 0.8.1, and 0.8.2

synch: use native folder select dialog

Changeset 095dda5c6376

Parent d7f160dd1dad

by Steve Borho

Changes to one file · Browse files at 095dda5c6376 Showing diff from parent d7f160dd1dad Diff from another changeset...

Change 1 of 1 Show Entire File hggtk/​synch.py Stacked
 
344
345
346
347
348
349
350
351
352
353
354
355
356
 
 
 
 
 
357
358
359
 
344
345
346
 
 
 
 
 
 
 
 
 
 
347
348
349
350
351
352
353
354
@@ -344,16 +344,11 @@
    def btn_remotepath_clicked(self, button):   """ select source folder to clone """ - dlg = gtk.FileChooserDialog(title=_('Select Repository'), - action=gtk.FILE_CHOOSER_ACTION_SELECT_FOLDER, - buttons=(gtk.STOCK_CANCEL,gtk.RESPONSE_CANCEL, - gtk.STOCK_OPEN,gtk.RESPONSE_OK)) - dlg.set_default_response(gtk.RESPONSE_OK) - dlg.set_current_folder(self.root) - response = dlg.run() - if response == gtk.RESPONSE_OK: - self.pathtext.set_text(dlg.get_filename()) - dlg.destroy() + response = gtklib.NativeFolderSelectDialog( + initial=self.root, + title=_('Select Repository')).run() + if response: + self.pathtext.set_text(response)     def btn_bundlepath_clicked(self, button):   """ select bundle to read from """