multiple file add

This commit is contained in:
Marcos Pinto 2007-06-29 02:00:15 +00:00
parent f3d83f687d
commit afd563d7b7
1 changed files with 2 additions and 1 deletions

View File

@ -278,13 +278,14 @@ def show_file_open_dialog(parent=None, title=None):
f1.set_name(_("All files"))
f1.add_pattern("*")
chooser.add_filter(f1)
chooser.set_select_multiple(true)
chooser.set_icon_from_file(common.get_pixmap("deluge32.png"))
chooser.set_property("skip-taskbar-hint", True)
response = chooser.run()
if response == gtk.RESPONSE_OK:
result = chooser.get_filename()
result = chooser.get_filenames()
else:
result = None
chooser.destroy()