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: drop redundant method

Changeset c24257de255a

Parent 117a5ebf97f7

by Yuki KODAMA

Changes to one file · Browse files at c24257de255a Showing diff from parent 117a5ebf97f7 Diff from another changeset...

 
151
152
153
154
155
156
157
158
159
160
161
162
163
 
186
187
188
189
190
 
 
191
192
193
 
 
 
 
194
195
196
 
151
152
153
 
 
 
 
 
 
 
154
155
156
 
179
180
181
 
 
182
183
184
185
 
186
187
188
189
190
191
192
@@ -151,13 +151,6 @@
  """Return the default destination path"""   return hglib.toutf(os.getcwd())   - def get_save_file_dialog(self, filter): - """Return a configured save file dialog""" - return gtklib.NativeSaveFileDialogWrapper( - InitialDir=self.destentry.get_text(), - Title=_('Select Destination File'), - Filter=filter) -   def get_selected_archive_type(self):   """Return a dictionary describing the selected archive type"""   dict = {} @@ -186,11 +179,14 @@
  archive_type = self.get_selected_archive_type()   if archive_type['type'] == 'files':   response = gtklib.NativeFolderSelectDialog( - initial=self.destentry.get_text(), - title=_('Select Destination Folder')).run() + initial=self.destentry.get_text(), + title=_('Select Destination Folder')).run()   else:   filter = archive_type['filter'] - response = self.get_save_file_dialog(filter).run() + response = gtklib.NativeSaveFileDialogWrapper( + InitialDir=self.destentry.get_text(), + Title=_('Select Destination File'), + Filter=filter).run()     if response:   self.destentry.set_text(response)