changeset 562:544958ddd70e

Rename thumbs_fd to thumbs_filedata in ViewFileIcon struct to match the name used in ViewFileList.
author zas_
date Sat, 03 May 2008 15:13:15 +0000
parents 977b9bbd0e9b
children 1ad894219964
files src/typedefs.h src/view_file_icon.c
diffstat 2 files changed, 9 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/src/typedefs.h	Sat May 03 15:09:21 2008 +0000
+++ b/src/typedefs.h	Sat May 03 15:13:15 2008 +0000
@@ -709,7 +709,7 @@
 	gint thumbs_running;
 	gint thumbs_count;
 	ThumbLoader *thumbs_loader;
-	FileData *thumbs_fd;
+	FileData *thumbs_filedata;
 };
 
 struct _ViewFileIcon
@@ -750,7 +750,7 @@
 	gint thumbs_running;
 	gint thumbs_count;
 	ThumbLoader *thumbs_loader;
-	FileData *thumbs_fd;
+	FileData *thumbs_filedata;
 
 	/* func list */
 	void (*func_thumb_status)(ViewFileIcon *vfi, gdouble val, const gchar *text, gpointer data);
--- a/src/view_file_icon.c	Sat May 03 15:09:21 2008 +0000
+++ b/src/view_file_icon.c	Sat May 03 15:13:15 2008 +0000
@@ -1891,7 +1891,7 @@
 	thumb_loader_free(vfi->thumbs_loader);
 	vfi->thumbs_loader = NULL;
 
-	vfi->thumbs_fd = NULL;
+	vfi->thumbs_filedata = NULL;
 }
 
 static void vficon_thumb_stop(ViewFileIcon *vfi)
@@ -1916,9 +1916,9 @@
 {
 	ViewFileIcon *vfi = data;
 
-	if (vfi->thumbs_fd && vfi->thumbs_loader == tl)
+	if (vfi->thumbs_filedata && vfi->thumbs_loader == tl)
 		{
-		vficon_thumb_do(vfi, tl, vfi->thumbs_fd);
+		vficon_thumb_do(vfi, tl, vfi->thumbs_filedata);
 		}
 
 	while (vficon_thumb_next(vfi));
@@ -1928,9 +1928,9 @@
 {
 	ViewFileIcon *vfi = data;
 
-	if (vfi->thumbs_fd && vfi->thumbs_loader == tl)
+	if (vfi->thumbs_filedata && vfi->thumbs_loader == tl)
 		{
-		vficon_thumb_do(vfi, tl, vfi->thumbs_fd);
+		vficon_thumb_do(vfi, tl, vfi->thumbs_filedata);
 		}
 
 	while (vficon_thumb_next(vfi));
@@ -1998,7 +1998,7 @@
 
 	vfi->thumbs_count++;
 
-	vfi->thumbs_fd = fd;
+	vfi->thumbs_filedata = fd;
 
 	thumb_loader_free(vfi->thumbs_loader);
 
@@ -2697,7 +2697,7 @@
 		}
 
 	/* Thumb loader check */
-	if (fd == vfi->thumbs_fd) vfi->thumbs_fd = NULL;
+	if (fd == vfi->thumbs_filedata) vfi->thumbs_filedata = NULL;
 	if (vfi->thumbs_count > 0) vfi->thumbs_count--;
 
 	if (vfi->prev_selection == id) vfi->prev_selection = NULL;