fix tb, because of the new HigDialog
This commit is contained in:
parent
25dfa506cd
commit
3cfd5541de
|
@ -192,13 +192,10 @@ class FileTransfersWindow:
|
||||||
if file_props['type'] == 'r':
|
if file_props['type'] == 'r':
|
||||||
sectext += '\n\t' +_('Saved in: %s') % \
|
sectext += '\n\t' +_('Saved in: %s') % \
|
||||||
gtkgui_helpers.escape_for_pango_markup(file_path)
|
gtkgui_helpers.escape_for_pango_markup(file_path)
|
||||||
dialog = dialogs.HigDialog(None, _('File transfer completed'), sectext,
|
dialog = dialogs.HigDialog(None, gtk.MESSAGE_INFO, gtk.BUTTONS_NONE,
|
||||||
gtk.STOCK_DIALOG_INFO, [
|
_('File transfer completed'), sectext)
|
||||||
[_('_Open Containing Folder'), gtk.RESPONSE_ACCEPT],
|
dialog.add_buttons(_('_Open Containing Folder'), gtk.RESPONSE_ACCEPT,
|
||||||
[ gtk.STOCK_OK, gtk.RESPONSE_OK ]])
|
gtk.STOCK_OK, gtk.RESPONSE_OK )
|
||||||
button = dialog.get_button(1)
|
|
||||||
button.set_image(gtk.image_new_from_stock(
|
|
||||||
gtk.STOCK_DIRECTORY, gtk.ICON_SIZE_BUTTON))
|
|
||||||
dialog.show_all()
|
dialog.show_all()
|
||||||
if file_props['type'] == 's':
|
if file_props['type'] == 's':
|
||||||
button.hide()
|
button.hide()
|
||||||
|
|
Loading…
Reference in New Issue