comparison src/bar_info.c @ 1191:bb02d0e2a573

Rename most comment_*() functions to more appropriate metadata_*().
author zas_
date Sun, 30 Nov 2008 21:43:01 +0000
parents f6449c17306b
children 48d62a7e3c33
comparison
equal deleted inserted replaced
1190:a4ea0c74a6e2 1191:bb02d0e2a573
404 if (!bd->fd) return; 404 if (!bd->fd) return;
405 405
406 list = keyword_list_pull(bd->keyword_view); 406 list = keyword_list_pull(bd->keyword_view);
407 comment = comment_pull(bd->comment_view); 407 comment = comment_pull(bd->comment_view);
408 408
409 comment_write(bd->fd, list, comment); 409 metadata_write(bd->fd, list, comment);
410 410
411 string_list_free(list); 411 string_list_free(list);
412 g_free(comment); 412 g_free(comment);
413 413
414 bd->changed = FALSE; 414 bd->changed = FALSE;
509 if (bd->label_file_time) 509 if (bd->label_file_time)
510 { 510 {
511 gtk_label_set_text(GTK_LABEL(bd->label_file_time), (bd->fd) ? text_from_time(bd->fd->date) : ""); 511 gtk_label_set_text(GTK_LABEL(bd->label_file_time), (bd->fd) ? text_from_time(bd->fd->date) : "");
512 } 512 }
513 513
514 if (comment_read(bd->fd, &keywords, &comment)) 514 if (metadata_read(bd->fd, &keywords, &comment))
515 { 515 {
516 keyword_list_push(bd->keyword_view, keywords); 516 keyword_list_push(bd->keyword_view, keywords);
517 gtk_text_buffer_set_text(gtk_text_view_get_buffer(GTK_TEXT_VIEW(bd->comment_view)), 517 gtk_text_buffer_set_text(gtk_text_view_get_buffer(GTK_TEXT_VIEW(bd->comment_view)),
518 (comment) ? comment : "", -1); 518 (comment) ? comment : "", -1);
519 519