Mercurial > geeqie.yaz
comparison src/view_dir_list.h @ 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 | f6e307c7bad6 |
children | 499d7ba62261 |
comparison
equal
deleted
inserted
replaced
379:a430eb2e3c95 | 380:5afe77bb563a |
---|---|
11 | 11 |
12 #ifndef VIEW_DIR_LIST_H | 12 #ifndef VIEW_DIR_LIST_H |
13 #define VIEW_DIR_LIST_H | 13 #define VIEW_DIR_LIST_H |
14 | 14 |
15 | 15 |
16 ViewDirList *vdlist_new(const gchar *path); | 16 ViewDir *vdlist_new(const gchar *path); |
17 | 17 |
18 void vdlist_set_select_func(ViewDirList *vdl, | 18 gint vdlist_set_path(ViewDir *vdl, const gchar *path); |
19 void (*func)(ViewDirList *vdl, const gchar *path, gpointer data), gpointer data); | 19 void vdlist_refresh(ViewDir *vdl); |
20 | 20 |
21 void vdlist_set_layout(ViewDirList *vdl, LayoutWindow *layout); | 21 const gchar *vdlist_row_get_path(ViewDir *vdl, gint row); |
22 | |
23 gint vdlist_set_path(ViewDirList *vdl, const gchar *path); | |
24 void vdlist_refresh(ViewDirList *vdl); | |
25 | |
26 const gchar *vdlist_row_get_path(ViewDirList *vdl, gint row); | |
27 | 22 |
28 | 23 |
29 #endif | 24 #endif |
30 | 25 |
31 | 26 |