Mercurial > geeqie
comparison src/bar_info.c @ 1192:48d62a7e3c33
metadata_set_keywords() -> metadata_set(). Use gboolean type for boolean parameters.
author | zas_ |
---|---|
date | Sun, 30 Nov 2008 21:52:37 +0000 |
parents | bb02d0e2a573 |
children | aed0e28b2744 |
comparison
equal
deleted
inserted
replaced
1191:bb02d0e2a573 | 1192:48d62a7e3c33 |
---|---|
650 | 650 |
651 bar_info_save_update(bd, FALSE); | 651 bar_info_save_update(bd, FALSE); |
652 bar_info_write(bd); | 652 bar_info_write(bd); |
653 } | 653 } |
654 | 654 |
655 static void bar_info_set_selection(BarInfoData *bd, gint set_keywords, gint set_comment, gint add) | 655 static void bar_info_set_selection(BarInfoData *bd, gboolean set_keywords, gboolean set_comment, gboolean append) |
656 { | 656 { |
657 GList *keywords = NULL; | 657 GList *keywords = NULL; |
658 GList *list = NULL; | 658 GList *list = NULL; |
659 GList *work; | 659 GList *work; |
660 gchar *comment = NULL; | 660 gchar *comment = NULL; |
669 if (set_comment) | 669 if (set_comment) |
670 { | 670 { |
671 comment = comment_pull(bd->comment_view); | 671 comment = comment_pull(bd->comment_view); |
672 } | 672 } |
673 | 673 |
674 if (add && !keywords && !comment) return; | 674 if (append && !keywords && !comment) return; |
675 | 675 |
676 list = bd->list_func(bd->list_data); | 676 list = bd->list_func(bd->list_data); |
677 work = list; | 677 work = list; |
678 while (work) | 678 while (work) |
679 { | 679 { |
680 FileData *fd = work->data; | 680 FileData *fd = work->data; |
681 work = work->next; | 681 work = work->next; |
682 | 682 |
683 metadata_set_keywords(fd, keywords, comment, add); | 683 metadata_set(fd, keywords, comment, append); |
684 } | 684 } |
685 | 685 |
686 filelist_free(list); | 686 filelist_free(list); |
687 string_list_free(keywords); | 687 string_list_free(keywords); |
688 g_free(comment); | 688 g_free(comment); |