Mercurial > geeqie
changeset 1169:cb699bd2742d
layout_image_setup_split_*(): simplify code.
author | zas_ |
---|---|
date | Sat, 22 Nov 2008 21:58:07 +0000 |
parents | 0c7534002b0a |
children | 159f225985c5 |
files | src/layout_image.c |
diffstat | 1 files changed, 1 insertions(+), 22 deletions(-) [+] |
line wrap: on
line diff
--- a/src/layout_image.c Sat Nov 22 21:11:09 2008 +0000 +++ b/src/layout_image.c Sat Nov 22 21:58:07 2008 +0000 @@ -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();