Mercurial > geeqie.yaz
changeset 1173:52ce0263cb7c
Use the last selected images for the splitted views. Ie. when 5 images are selected, the last one is displayed, split quad while open images 5,4,3,2. It seems better to me.
author | zas_ |
---|---|
date | Sat, 22 Nov 2008 22:54:51 +0000 |
parents | 08ef8c605723 |
children | 0bea79d87065 |
files | src/layout_image.c |
diffstat | 1 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/layout_image.c Sat Nov 22 22:43:18 2008 +0000 +++ b/src/layout_image.c Sat Nov 22 22:54:51 2008 +0000 @@ -1602,16 +1602,18 @@ layout_image_new(lw, i); image_set_frame(lw->split_images[i], frame); image_set_selectable(lw->split_images[i], 1); - + if (layout_selection_count(lw, 0) > 1) { - GList *work = layout_selection_list(lw); + GList *work = g_list_last(layout_selection_list(lw)); gint j = 0; + + if (work) work = work->prev; while (work && j < i) { FileData *fd = work->data; - work = work->next; + work = work->prev; j++; if (!fd || !*fd->path) continue;