/*
* 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;
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;
g_list_free(list);
}
-
+/* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */