| 277 if (data) |
278 if (data) |
| 278 fwrite(data, 1, len, file); |
279 fwrite(data, 1, len, file); |
| 279 |
280 |
| 280 fclose(file); |
281 fclose(file); |
| 281 } else { |
282 } else { |
| 282 do_error_dialog("Can't save icon file to disk", |
283 gaim_notify_error(NULL, NULL, |
| 283 strerror(errno), GAIM_ERROR); |
284 _("Can't save icon file to disk."), NULL); |
| 284 } |
285 } |
| 285 |
286 |
| 286 gtk_widget_destroy(gtkconv->u.im->save_icon); |
287 gtk_widget_destroy(gtkconv->u.im->save_icon); |
| 287 gtkconv->u.im->save_icon = NULL; |
288 gtkconv->u.im->save_icon = NULL; |
| 288 } |
289 } |