void file_progress_show_target (FileOpContext * ctx, const vfs_path_t * s_vpath) { FileOpContextUI *ui; g_return_if_fail (ctx != NULL); g_return_if_fail (ctx->ui != NULL); ui = ctx->ui; if (s_vpath != NULL) { char *s; s = vfs_path_to_str (s_vpath); label_set_text (ui->file_label[1], _("Target")); label_set_text (ui->file_string[1], truncFileStringSecure (ui, s)); g_free (s); } else { label_set_text (ui->file_label[1], ""); label_set_text (ui->file_string[1], ""); } }
void file_progress_show_deleting (FileOpContext * ctx, const char *s) { FileOpContextUI *ui; g_return_if_fail (ctx != NULL); g_return_if_fail (ctx->ui != NULL); ui = ctx->ui; label_set_text (ui->file_label[0], _("Deleting")); label_set_text (ui->file_label[0], truncFileStringSecure (ui, s)); }
void file_progress_show_deleting (file_op_context_t * ctx, const char *s, size_t * count) { file_op_context_ui_t *ui; if (ctx == NULL || ctx->ui == NULL) return; ui = ctx->ui; label_set_text (ui->src_file, truncFileStringSecure (ui->op_dlg, s)); if (count != NULL) (*count)++; }
void file_progress_show_target (FileOpContext * ctx, const char *s) { FileOpContextUI *ui; g_return_if_fail (ctx != NULL); g_return_if_fail (ctx->ui != NULL); ui = ctx->ui; if (s != NULL) { label_set_text (ui->file_label[1], _("Target")); label_set_text (ui->file_string[1], truncFileStringSecure (ui, s)); } else { label_set_text (ui->file_label[1], ""); label_set_text (ui->file_string[1], ""); } }
void file_progress_show_target (file_op_context_t * ctx, const vfs_path_t * s_vpath) { file_op_context_ui_t *ui; if (ctx == NULL || ctx->ui == NULL) return; ui = ctx->ui; if (s_vpath != NULL) { label_set_text (ui->tgt_file_label, _("Target")); label_set_text (ui->tgt_file, truncFileStringSecure (ui->op_dlg, vfs_path_as_str (s_vpath))); } else { label_set_text (ui->tgt_file_label, ""); label_set_text (ui->tgt_file, ""); } }