Mercurial > geeqie.yaz
comparison src/globals.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 | 61a3c8b05b24 |
children | 9e521adbf312 |
comparison
equal
deleted
inserted
replaced
379:a430eb2e3c95 | 380:5afe77bb563a |
---|---|
116 /* layout */ | 116 /* layout */ |
117 options->layout.order = NULL; | 117 options->layout.order = NULL; |
118 options->layout.style = 0; | 118 options->layout.style = 0; |
119 | 119 |
120 options->layout.view_as_icons = FALSE; | 120 options->layout.view_as_icons = FALSE; |
121 options->layout.view_as_tree = FALSE; | 121 options->layout.dir_view_type = DIRVIEW_LIST; |
122 | 122 |
123 options->show_icon_names = TRUE; | 123 options->show_icon_names = TRUE; |
124 | 124 |
125 options->tree_descend_subdirs = FALSE; | 125 options->tree_descend_subdirs = FALSE; |
126 | 126 |