comparison src/gtkft.c @ 4541:0626ec2f2feb

[gaim-migrate @ 4820] Fixed the problem of a canceled transfer crashing gaim before the file transfer dialog appeared. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Thu, 06 Feb 2003 10:12:33 +0000
parents 599d350fce4e
children d03fcb3f4be2
comparison
equal deleted inserted replaced
4540:d83c5b925a05 4541:0626ec2f2feb
570 gaim_gtkxfer_cancel(struct gaim_xfer *xfer) 570 gaim_gtkxfer_cancel(struct gaim_xfer *xfer)
571 { 571 {
572 struct gaim_gtkxfer_ui_data *data; 572 struct gaim_gtkxfer_ui_data *data;
573 GdkPixbuf *pixbuf; 573 GdkPixbuf *pixbuf;
574 574
575 if (xfer_dialog == NULL)
576 return;
577
575 data = (struct gaim_gtkxfer_ui_data *)xfer->ui_data; 578 data = (struct gaim_gtkxfer_ui_data *)xfer->ui_data;
576 579
577 pixbuf = gtk_widget_render_icon(xfer_dialog->window, 580 pixbuf = gtk_widget_render_icon(xfer_dialog->window,
578 GAIM_STOCK_FILE_CANCELED, 581 GAIM_STOCK_FILE_CANCELED,
579 GTK_ICON_SIZE_MENU, NULL); 582 GTK_ICON_SIZE_MENU, NULL);