comparison src/view_file_list.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 15c6b94545a2
children 4b2d7f9af171
comparison
equal deleted inserted replaced
379:a430eb2e3c95 380:5afe77bb563a
426 426
427 static void vflist_pop_menu_icons_cb(GtkWidget *widget, gpointer data) 427 static void vflist_pop_menu_icons_cb(GtkWidget *widget, gpointer data)
428 { 428 {
429 ViewFileList *vfl = data; 429 ViewFileList *vfl = data;
430 430
431 if (vfl->layout) layout_views_set(vfl->layout, vfl->layout->tree_view, TRUE); 431 if (vfl->layout) layout_views_set(vfl->layout, vfl->layout->dir_view_type, TRUE);
432 } 432 }
433 433
434 static void vflist_pop_menu_thumbs_cb(GtkWidget *widget, gpointer data) 434 static void vflist_pop_menu_thumbs_cb(GtkWidget *widget, gpointer data)
435 { 435 {
436 ViewFileList *vfl = data; 436 ViewFileList *vfl = data;