Mercurial > geeqie
comparison 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 |
comparison
equal
deleted
inserted
replaced
782:3f7a0420c293 | 783:d6a7fb4b8e7c |
---|---|
15 #include "pan-types.h" | 15 #include "pan-types.h" |
16 | 16 |
17 #include <math.h> | 17 #include <math.h> |
18 | 18 |
19 | 19 |
20 void pan_grid_compute(PanWindow *pw, const gchar *path, gint *width, gint *height) | 20 void pan_grid_compute(PanWindow *pw, FileData *dir_fd, gint *width, gint *height) |
21 { | 21 { |
22 GList *list; | 22 GList *list; |
23 GList *work; | 23 GList *work; |
24 gint x, y; | 24 gint x, y; |
25 gint grid_size; | 25 gint grid_size; |
26 gint next_y; | 26 gint next_y; |
27 | 27 |
28 list = pan_list_tree(path, SORT_NAME, TRUE, pw->ignore_symlinks); | 28 list = pan_list_tree(dir_fd, SORT_NAME, TRUE, pw->ignore_symlinks); |
29 | 29 |
30 grid_size = (gint)sqrt((double)g_list_length(list)); | 30 grid_size = (gint)sqrt((double)g_list_length(list)); |
31 if (pw->size > PAN_IMAGE_SIZE_THUMB_LARGE) | 31 if (pw->size > PAN_IMAGE_SIZE_THUMB_LARGE) |
32 { | 32 { |
33 grid_size = grid_size * (512 + PAN_THUMB_GAP) * pw->image_size / 100; | 33 grid_size = grid_size * (512 + PAN_THUMB_GAP) * pw->image_size / 100; |