changeset 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 17d4ef9785c0
children ebb2c2b1454d
files src/layout.c src/view_file_list.c src/view_file_list.h
diffstat 3 files changed, 2 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/src/layout.c	Sat May 03 12:21:22 2008 +0000
+++ b/src/layout.c	Sat May 03 12:48:45 2008 +0000
@@ -768,7 +768,7 @@
 		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);
+		vflist_thumb_set(lw->vfl, lw->thumbs_enabled);
 
 		widget = lw->vfl->widget;
 		}
--- a/src/view_file_list.c	Sat May 03 12:21:22 2008 +0000
+++ b/src/view_file_list.c	Sat May 03 12:48:45 2008 +0000
@@ -1983,11 +1983,6 @@
 	g_free(vfl);
 }
 
-void vflist_thumbs_set(ViewFileList *vfl, gint enabled)
-{
-	vfl->thumbs_enabled = enabled; 
-}
-
 ViewFileList *vflist_new(const gchar *path)
 {
 	ViewFileList *vfl;
@@ -2096,7 +2091,7 @@
 	if (vfl->thumbs_enabled == enable) return;
 
 	vfl->thumbs_enabled = enable;
-	vflist_refresh(vfl);
+	if (vfl->layout) vflist_refresh(vfl);
 }
 
 void vflist_marks_set(ViewFileList *vfl, gint enable)
--- a/src/view_file_list.h	Sat May 03 12:21:22 2008 +0000
+++ b/src/view_file_list.h	Sat May 03 12:48:45 2008 +0000
@@ -16,8 +16,6 @@
 
 #include "filelist.h"
 
-void vflist_thumbs_set(ViewFileList *vfl, gint enabled);
-
 ViewFileList *vflist_new(const gchar *path);
 
 void vflist_set_status_func(ViewFileList *vfl,