Mercurial > geeqie
comparison 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 |
comparison
equal
deleted
inserted
replaced
379:a430eb2e3c95 | 380:5afe77bb563a |
---|---|
279 | 279 |
280 static void vficon_pop_menu_list_cb(GtkWidget *widget, gpointer data) | 280 static void vficon_pop_menu_list_cb(GtkWidget *widget, gpointer data) |
281 { | 281 { |
282 ViewFileIcon *vfi = data; | 282 ViewFileIcon *vfi = data; |
283 | 283 |
284 if (vfi->layout) layout_views_set(vfi->layout, vfi->layout->tree_view, FALSE); | 284 if (vfi->layout) layout_views_set(vfi->layout, vfi->layout->dir_view_type, FALSE); |
285 } | 285 } |
286 | 286 |
287 static void vficon_pop_menu_show_names_cb(GtkWidget *widget, gpointer data) | 287 static void vficon_pop_menu_show_names_cb(GtkWidget *widget, gpointer data) |
288 { | 288 { |
289 ViewFileIcon *vfi = data; | 289 ViewFileIcon *vfi = data; |