diff src/view_file_icon.c @ 380:5afe77bb563a

Introduce a new struct ViewDir to handle directory views common data. Specific data is now in ViewDirInfoList and ViewDirInfoTree. Type of directory view can be specified with enum DirViewType. This is saved to rc file as layout.dir_view_type, which replace layout.view_as_tree. Code was modified to reflect these changes. This is a first to move to merge common code of view_dir_list.c and view_dir_tree.c and ease the introduction of new types of directory view.
author zas_
date Wed, 16 Apr 2008 14:45:22 +0000
parents df868b947aa0
children 4b2d7f9af171
line wrap: on
line diff
--- a/src/view_file_icon.c	Tue Apr 15 21:49:28 2008 +0000
+++ b/src/view_file_icon.c	Wed Apr 16 14:45:22 2008 +0000
@@ -281,7 +281,7 @@
 {
 	ViewFileIcon *vfi = data;
 
-	if (vfi->layout) layout_views_set(vfi->layout, vfi->layout->tree_view, FALSE);
+	if (vfi->layout) layout_views_set(vfi->layout, vfi->layout->dir_view_type, FALSE);
 }
 
 static void vficon_pop_menu_show_names_cb(GtkWidget *widget, gpointer data)