Introduce a new struct ViewDir to handle directory views common
authorLaurent Monin <geeqie@norz.org>
Wed, 16 Apr 2008 14:45:22 +0000 (14:45 +0000)
committerLaurent Monin <geeqie@norz.org>
Wed, 16 Apr 2008 14:45:22 +0000 (14:45 +0000)
commitb90ce4354563cb43ad69dc3fe97be4ad12f5eb89
treefecbc2982365bac825f55ab6f8caff137f8d4e12
parent926c9122c33a25e49679e9689c2a22d8b032b7d8
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.
16 files changed:
src/Makefile.am
src/globals.c
src/layout.c
src/layout.h
src/layout_util.c
src/main.c
src/rcfile.c
src/typedefs.h
src/view_dir.c [new file with mode: 0644]
src/view_dir.h [new file with mode: 0644]
src/view_dir_list.c
src/view_dir_list.h
src/view_dir_tree.c
src/view_dir_tree.h
src/view_file_icon.c
src/view_file_list.c