Revision: 1268
http://geeqie.svn.sourceforge.net/geeqie/?rev=1268&view=rev
Author: zas_
Date: 2008-11-22 22:54:51 +0000 (Sat, 22 Nov 2008)
Log Message:
-----------
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.
Modified Paths:
--------------
trunk/src/layout_image.c
Modified: trunk/src/layout_image.c
===================================================================
--- trunk/src/layout_image.c 2008-11-22 22:43:18 UTC (rev 1267)
+++ trunk/src/layout_image.c 2008-11-22 22:54:51 UTC (rev 1268)
@@ -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;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geeqie-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geeqie-svn