# HG changeset patch # User zas_ # Date 1209818925 0 # Node ID c0e47b628f76692818e17f00eb3c11f21d64895b # Parent 17d4ef9785c0ea8a9b367b7b897863e3341ceb48 Drop redundant vflist_thumbs_set() introduced in revision 649, modify and use existing vflist_thumb_set(). diff -r 17d4ef9785c0 -r c0e47b628f76 src/layout.c --- 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; } diff -r 17d4ef9785c0 -r c0e47b628f76 src/view_file_list.c --- 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) diff -r 17d4ef9785c0 -r c0e47b628f76 src/view_file_list.h --- 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,