Remove commented out code.
[geeqie.git] / src / pan-grid.c
index 3528869..4f1c527 100644 (file)
@@ -1,6 +1,7 @@
 /*
  * Geeqie
  * (C) 2006 John Ellis
+ * Copyright (C) 2008 - 2012 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,9 +25,9 @@ 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));
+       grid_size = (gint)sqrt((gdouble)g_list_length(list));
        if (pw->size > PAN_IMAGE_SIZE_THUMB_LARGE)
                {
                grid_size = grid_size * (512 + PAN_THUMB_GAP) * pw->image_size / 100;
@@ -80,4 +81,4 @@ void pan_grid_compute(PanWindow *pw, const gchar *path, gint *width, gint *heigh
 
        g_list_free(list);
 }
-
+/* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */