Mercurial > geeqie.yaz
comparison src/layout_image.c @ 334:df868b947aa0
Rename image-related options.
author | zas_ |
---|---|
date | Sat, 12 Apr 2008 15:04:58 +0000 |
parents | 049d6b00cc14 |
children | de1c2cd06fce |
comparison
equal
deleted
inserted
replaced
333:767b53cd9ab7 | 334:df868b947aa0 |
---|---|
1109 gdouble sx, sy; | 1109 gdouble sx, sy; |
1110 if (!layout_valid(&lw)) return; | 1110 if (!layout_valid(&lw)) return; |
1111 | 1111 |
1112 image_get_scroll_center(lw->image, &sx, &sy); | 1112 image_get_scroll_center(lw->image, &sx, &sy); |
1113 | 1113 |
1114 image_change_fd(lw->image, fd, image_zoom_get_default(lw->image, options->zoom_mode)); | 1114 image_change_fd(lw->image, fd, image_zoom_get_default(lw->image, options->image.zoom_mode)); |
1115 | 1115 |
1116 image_set_scroll_center(lw->image, sx, sy); | 1116 image_set_scroll_center(lw->image, sx, sy); |
1117 | 1117 |
1118 layout_list_sync_fd(lw, fd); | 1118 layout_list_sync_fd(lw, fd); |
1119 layout_image_slideshow_continue_check(lw); | 1119 layout_image_slideshow_continue_check(lw); |
1133 old_path = layout_image_get_path(lw); | 1133 old_path = layout_image_get_path(lw); |
1134 if (old_path && strcmp(path, old_path) == 0) return; | 1134 if (old_path && strcmp(path, old_path) == 0) return; |
1135 } | 1135 } |
1136 */ | 1136 */ |
1137 layout_image_set_fd(lw, fd); | 1137 layout_image_set_fd(lw, fd); |
1138 if (options->enable_read_ahead) image_prebuffer_set(lw->image, read_ahead_fd); | 1138 if (options->image.enable_read_ahead) image_prebuffer_set(lw->image, read_ahead_fd); |
1139 } | 1139 } |
1140 | 1140 |
1141 void layout_image_set_index(LayoutWindow *lw, gint index) | 1141 void layout_image_set_index(LayoutWindow *lw, gint index) |
1142 { | 1142 { |
1143 FileData *fd; | 1143 FileData *fd; |
1201 | 1201 |
1202 static void layout_image_set_collection_real(LayoutWindow *lw, CollectionData *cd, CollectInfo *info, gint forward) | 1202 static void layout_image_set_collection_real(LayoutWindow *lw, CollectionData *cd, CollectInfo *info, gint forward) |
1203 { | 1203 { |
1204 if (!layout_valid(&lw)) return; | 1204 if (!layout_valid(&lw)) return; |
1205 | 1205 |
1206 image_change_from_collection(lw->image, cd, info, image_zoom_get_default(lw->image, options->zoom_mode)); | 1206 image_change_from_collection(lw->image, cd, info, image_zoom_get_default(lw->image, options->image.zoom_mode)); |
1207 if (options->enable_read_ahead) | 1207 if (options->image.enable_read_ahead) |
1208 { | 1208 { |
1209 CollectInfo *r_info; | 1209 CollectInfo *r_info; |
1210 if (forward) | 1210 if (forward) |
1211 { | 1211 { |
1212 r_info = collection_next_by_info(cd, info); | 1212 r_info = collection_next_by_info(cd, info); |