Rename thumbs_fd to thumbs_filedata in ViewFileIcon struct to match
authorLaurent Monin <geeqie@norz.org>
Sat, 3 May 2008 15:13:15 +0000 (15:13 +0000)
committerLaurent Monin <geeqie@norz.org>
Sat, 3 May 2008 15:13:15 +0000 (15:13 +0000)
the name used in ViewFileList.

src/typedefs.h
src/view_file_icon.c

index 71135c4..2584b0f 100644 (file)
@@ -709,7 +709,7 @@ struct _ViewFileInfoIcon
        gint thumbs_running;
        gint thumbs_count;
        ThumbLoader *thumbs_loader;
-       FileData *thumbs_fd;
+       FileData *thumbs_filedata;
 };
 
 struct _ViewFileIcon
@@ -750,7 +750,7 @@ struct _ViewFileIcon
        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);
index 466a53f..a75e9d2 100644 (file)
@@ -1891,7 +1891,7 @@ static void vficon_thumb_cleanup(ViewFileIcon *vfi)
        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 @@ static void vficon_thumb_error_cb(ThumbLoader *tl, gpointer data)
 {
        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 @@ static void vficon_thumb_done_cb(ThumbLoader *tl, gpointer data)
 {
        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 @@ static gint vficon_thumb_next(ViewFileIcon *vfi)
 
        vfi->thumbs_count++;
 
-       vfi->thumbs_fd = fd;
+       vfi->thumbs_filedata = fd;
 
        thumb_loader_free(vfi->thumbs_loader);
 
@@ -2697,7 +2697,7 @@ gint vficon_maint_removed(ViewFileIcon *vfi, FileData *fd, GList *ignore_list)
                }
 
        /* 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;