Mercurial > geeqie.yaz
comparison src/view_file_list.c @ 736:a7289f9e8d29
Fix signed vs unsigned warnings.
In most cases, gint was used instead of guint.
author | zas_ |
---|---|
date | Thu, 22 May 2008 13:00:45 +0000 |
parents | a1dcef8cd1ae |
children | 477f48ba28d8 |
comparison
equal
deleted
inserted
replaced
735:df6c11709106 | 736:a7289f9e8d29 |
---|---|
230 vflist_color_set(vf, VFLIST_INFO(vf, click_fd), TRUE); | 230 vflist_color_set(vf, VFLIST_INFO(vf, click_fd), TRUE); |
231 | 231 |
232 if (VFLIST_INFO(vf, thumbs_enabled) && | 232 if (VFLIST_INFO(vf, thumbs_enabled) && |
233 VFLIST_INFO(vf, click_fd) && VFLIST_INFO(vf, click_fd)->pixbuf) | 233 VFLIST_INFO(vf, click_fd) && VFLIST_INFO(vf, click_fd)->pixbuf) |
234 { | 234 { |
235 gint items; | 235 guint items; |
236 | 236 |
237 if (vflist_row_is_selected(vf, VFLIST_INFO(vf, click_fd))) | 237 if (vflist_row_is_selected(vf, VFLIST_INFO(vf, click_fd))) |
238 items = vf_selection_count(vf, NULL); | 238 items = vf_selection_count(vf, NULL); |
239 else | 239 else |
240 items = 1; | 240 items = 1; |
627 // FIXME sidecar data | 627 // FIXME sidecar data |
628 | 628 |
629 if (sel_fd && options->image.enable_read_ahead && row >= 0) | 629 if (sel_fd && options->image.enable_read_ahead && row >= 0) |
630 { | 630 { |
631 if (row > g_list_index(vf->list, cur_fd) && | 631 if (row > g_list_index(vf->list, cur_fd) && |
632 row + 1 < vf_count(vf, NULL)) | 632 (guint) (row + 1) < vf_count(vf, NULL)) |
633 { | 633 { |
634 read_ahead_fd = vf_index_get_data(vf, row + 1); | 634 read_ahead_fd = vf_index_get_data(vf, row + 1); |
635 } | 635 } |
636 else if (row > 0) | 636 else if (row > 0) |
637 { | 637 { |
1062 } | 1062 } |
1063 | 1063 |
1064 return -1; | 1064 return -1; |
1065 } | 1065 } |
1066 | 1066 |
1067 gint vflist_count(ViewFile *vf, gint64 *bytes) | 1067 guint vflist_count(ViewFile *vf, gint64 *bytes) |
1068 { | 1068 { |
1069 if (bytes) | 1069 if (bytes) |
1070 { | 1070 { |
1071 gint64 b = 0; | 1071 gint64 b = 0; |
1072 GList *work; | 1072 GList *work; |
1142 | 1142 |
1143 fd = vf_index_get_data(vf, row); | 1143 fd = vf_index_get_data(vf, row); |
1144 return vflist_row_is_selected(vf, fd); | 1144 return vflist_row_is_selected(vf, fd); |
1145 } | 1145 } |
1146 | 1146 |
1147 gint vflist_selection_count(ViewFile *vf, gint64 *bytes) | 1147 guint vflist_selection_count(ViewFile *vf, gint64 *bytes) |
1148 { | 1148 { |
1149 GtkTreeModel *store; | 1149 GtkTreeModel *store; |
1150 GtkTreeSelection *selection; | 1150 GtkTreeSelection *selection; |
1151 GList *slist; | 1151 GList *slist; |
1152 gint count; | 1152 guint count; |
1153 | 1153 |
1154 selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(vf->listview)); | 1154 selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(vf->listview)); |
1155 slist = gtk_tree_selection_get_selected_rows(selection, &store); | 1155 slist = gtk_tree_selection_get_selected_rows(selection, &store); |
1156 | 1156 |
1157 if (bytes) | 1157 if (bytes) |