comparison src/view_file_list.c @ 559:c0e47b628f76

Drop redundant vflist_thumbs_set() introduced in revision 649, modify and use existing vflist_thumb_set().
author zas_
date Sat, 03 May 2008 12:48:45 +0000
parents d8d61dc4ff52
children 2996f1bbc305
comparison
equal deleted inserted replaced
558:17d4ef9785c0 559:c0e47b628f76
1981 g_free(vfl->path); 1981 g_free(vfl->path);
1982 filelist_free(vfl->list); 1982 filelist_free(vfl->list);
1983 g_free(vfl); 1983 g_free(vfl);
1984 } 1984 }
1985 1985
1986 void vflist_thumbs_set(ViewFileList *vfl, gint enabled)
1987 {
1988 vfl->thumbs_enabled = enabled;
1989 }
1990
1991 ViewFileList *vflist_new(const gchar *path) 1986 ViewFileList *vflist_new(const gchar *path)
1992 { 1987 {
1993 ViewFileList *vfl; 1988 ViewFileList *vfl;
1994 GtkTreeStore *store; 1989 GtkTreeStore *store;
1995 GtkTreeSelection *selection; 1990 GtkTreeSelection *selection;
2094 void vflist_thumb_set(ViewFileList *vfl, gint enable) 2089 void vflist_thumb_set(ViewFileList *vfl, gint enable)
2095 { 2090 {
2096 if (vfl->thumbs_enabled == enable) return; 2091 if (vfl->thumbs_enabled == enable) return;
2097 2092
2098 vfl->thumbs_enabled = enable; 2093 vfl->thumbs_enabled = enable;
2099 vflist_refresh(vfl); 2094 if (vfl->layout) vflist_refresh(vfl);
2100 } 2095 }
2101 2096
2102 void vflist_marks_set(ViewFileList *vfl, gint enable) 2097 void vflist_marks_set(ViewFileList *vfl, gint enable)
2103 { 2098 {
2104 GList *columns, *work; 2099 GList *columns, *work;