replaced directory path with FileData* dir_fd
[geeqie.git] / src / pan-grid.c
index 3e62aeb..f6fd311 100644 (file)
@@ -1,6 +1,7 @@
 /*
- * GQview
+ * Geeqie
  * (C) 2006 John Ellis
+ * Copyright (C) 2008 The Geeqie Team
  *
  * Author: John Ellis
  *
  */
 
 
-#include "gqview.h"
+#include "main.h"
 #include "pan-types.h"
 
 #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;
@@ -24,7 +25,7 @@ void pan_grid_compute(PanWindow *pw, const gchar *path, gint *width, gint *heigh
        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)
@@ -80,4 +81,3 @@ void pan_grid_compute(PanWindow *pw, const gchar *path, gint *width, gint *heigh
 
        g_list_free(list);
 }
-