fixed TB due to code from the older version

This commit is contained in:
Dimitur Kirov 2005-09-13 20:09:19 +00:00
parent 7bdb6e23b1
commit b38911c514
1 changed files with 3 additions and 5 deletions

View File

@ -194,12 +194,10 @@ class FileTransfersWindow:
gtkgui_helpers.escape_for_pango_markup(file_path)
dialog = dialogs.HigDialog(None, gtk.MESSAGE_INFO, gtk.BUTTONS_NONE,
_('File transfer completed'), sectext)
#FIXME: add folder icon to Open Containgin Folder button
dialog.add_buttons(_('_Open Containing Folder'), gtk.RESPONSE_ACCEPT,
gtk.STOCK_OK, gtk.RESPONSE_OK )
if file_props['type'] == 'r':
dialog.add_buttons(_('_Open Containing Folder'), gtk.RESPONSE_ACCEPT)
dialog.add_buttons(gtk.STOCK_OK, gtk.RESPONSE_OK)
dialog.show_all()
if file_props['type'] == 's':
button.hide()
response = dialog.run()
dialog.destroy()
if response == gtk.RESPONSE_ACCEPT: