of vflist_new().
return lw->vfi->widget;
}
- lw->vfl = vflist_new(NULL, lw->thumbs_enabled);
+ lw->vfl = vflist_new(NULL);
vflist_set_layout(lw->vfl, lw);
vflist_set_status_func(lw->vfl, layout_list_status_cb, lw);
vflist_set_thumb_status_func(lw->vfl, layout_list_thumb_cb, lw);
vflist_marks_set(lw->vfl, lw->marks_enabled);
+ vflist_thumbs_set(lw->vfl, lw->thumbs_enabled);
return lw->vfl->widget;
}
g_free(vfl);
}
-ViewFileList *vflist_new(const gchar *path, gint thumbs)
+void vflist_thumbs_set(ViewFileList *vfl, gint enabled)
+{
+ vfl->thumbs_enabled = enabled;
+}
+
+ViewFileList *vflist_new(const gchar *path)
{
ViewFileList *vfl;
GtkTreeStore *store;
vfl->select_fd = NULL;
vfl->sort_method = SORT_NAME;
vfl->sort_ascend = TRUE;
- vfl->thumbs_enabled = thumbs;
+ vfl->thumbs_enabled = FALSE;
vfl->thumbs_running = FALSE;
vfl->thumbs_count = 0;
#include "filelist.h"
+void vflist_thumbs_set(ViewFileList *vfl, gint enabled);
-ViewFileList *vflist_new(const gchar *path, gint thumbs);
+ViewFileList *vflist_new(const gchar *path);
void vflist_set_status_func(ViewFileList *vfl,
void (*func)(ViewFileList *vfl, gpointer data), gpointer data);