diff src/layout.c @ 1412:5a534e1501e1

fixed saving of file_view_type
author nadvornik
date Tue, 10 Mar 2009 22:52:12 +0000
parents 9274b3b4eaad
children 74d1fa5af269
line wrap: on
line diff
--- a/src/layout.c	Tue Mar 10 17:58:30 2009 +0000
+++ b/src/layout.c	Tue Mar 10 22:52:12 2009 +0000
@@ -841,7 +841,7 @@
 
 static GtkWidget *layout_list_new(LayoutWindow *lw)
 {
-	lw->vf = vf_new(lw->file_view_type, NULL);
+	lw->vf = vf_new(lw->options.file_view_type, NULL);
 	vf_set_layout(lw->vf, lw);
 
 	vf_set_status_func(lw->vf, layout_list_status_cb, lw);
@@ -849,7 +849,7 @@
 
 	vf_marks_set(lw->vf, lw->options.show_marks);
 
-	switch (lw->file_view_type)
+	switch (lw->options.file_view_type)
 	{
 	case FILEVIEW_ICON:
 		break;
@@ -1235,10 +1235,10 @@
 {
 	if (!layout_valid(&lw)) return;
 
-	if (lw->options.dir_view_type == dir_view_type && lw->file_view_type == file_view_type) return;
+	if (lw->options.dir_view_type == dir_view_type && lw->options.file_view_type == file_view_type) return;
 
 	lw->options.dir_view_type = dir_view_type;
-	lw->file_view_type = file_view_type;
+	lw->options.file_view_type = file_view_type;
 
 	layout_style_set(lw, -1, NULL);
 }
@@ -1248,7 +1248,7 @@
 	if (!layout_valid(&lw)) return FALSE;
 
 	*dir_view_type = lw->options.dir_view_type;
-	*file_view_type = lw->file_view_type;
+	*file_view_type = lw->options.file_view_type;
 
 	return TRUE;
 }