Revision: 1264
          http://geeqie.svn.sourceforge.net/geeqie/?rev=1264&view=rev
Author:   zas_
Date:     2008-11-22 21:58:07 +0000 (Sat, 22 Nov 2008)

Log Message:
-----------
layout_image_setup_split_*(): simplify code.

Modified Paths:
--------------
    trunk/src/layout_image.c

Modified: trunk/src/layout_image.c
===================================================================
--- trunk/src/layout_image.c    2008-11-22 21:11:09 UTC (rev 1263)
+++ trunk/src/layout_image.c    2008-11-22 21:58:07 UTC (rev 1264)
@@ -1632,7 +1632,7 @@
 {
        gint i;
 
-       for (i = 1; i < n; i++)
+       for (i = 0; i < n; i++)
                if (!lw->split_images[i])
                        {
                        layout_image_new(lw, i);
@@ -1680,13 +1680,6 @@
        
        lw->split_mode = horizontal ? SPLIT_HOR : SPLIT_VERT;
 
-       if (!lw->split_images[0])
-               {
-               layout_image_new(lw, 0);
-               }
-       image_set_frame(lw->split_images[0], 1);
-       image_set_selectable(lw->split_images[0], 1);
-
        layout_image_setup_split_common(lw, 2);
 
        /* horizontal split means vpaned and vice versa */
@@ -1716,22 +1709,8 @@
 
        lw->split_mode = SPLIT_QUAD;
 
-       if (!lw->split_images[0])
-               {
-               layout_image_new(lw, 0);
-               }
-
-       image_set_frame(lw->split_images[0], 1);
-       image_set_selectable(lw->split_images[0], 1);
-
-       if (!lw->split_images[1])
-               {
-               layout_image_activate(lw, 0);
-               }
-
        layout_image_setup_split_common(lw, 4);
 
-
        hpaned = gtk_hpaned_new();
        vpaned1 = gtk_vpaned_new();
        vpaned2 = gtk_vpaned_new();


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

Reply via email to