diff src/pan-grid.c @ 783:d6a7fb4b8e7c

replaced directory path with FileData* dir_fd
author nadvornik
date Tue, 03 Jun 2008 19:44:19 +0000
parents 48c8e49b571c
children 4fe8f9656107
line wrap: on
line diff
--- a/src/pan-grid.c	Tue Jun 03 15:54:05 2008 +0000
+++ b/src/pan-grid.c	Tue Jun 03 19:44:19 2008 +0000
@@ -17,7 +17,7 @@
 #include <math.h>
 
 
-void pan_grid_compute(PanWindow *pw, const gchar *path, gint *width, gint *height)
+void pan_grid_compute(PanWindow *pw, FileData *dir_fd, gint *width, gint *height)
 {
 	GList *list;
 	GList *work;
@@ -25,7 +25,7 @@
 	gint grid_size;
 	gint next_y;
 
-	list = pan_list_tree(path, SORT_NAME, TRUE, pw->ignore_symlinks);
+	list = pan_list_tree(dir_fd, SORT_NAME, TRUE, pw->ignore_symlinks);
 
 	grid_size = (gint)sqrt((double)g_list_length(list));
 	if (pw->size > PAN_IMAGE_SIZE_THUMB_LARGE)