diff options
| author | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2009-04-11 12:59:58 +0200 |
|---|---|---|
| committer | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2009-04-11 12:59:58 +0200 |
| commit | 6a54c7817bb71fde9234e7b89e87f1f349920ea1 (patch) | |
| tree | 07b8766f2369a0f169524a7bc3da1423e4115a30 /src/job-manager.c | |
| parent | 4f83d66c4fe13f605c6fd43789b998f08ce5c108 (diff) | |
| download | cataract-6a54c7817bb71fde9234e7b89e87f1f349920ea1.tar.xz | |
User customizable image directories
Diffstat (limited to 'src/job-manager.c')
| -rw-r--r-- | src/job-manager.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/job-manager.c b/src/job-manager.c index e3ae00d..bcbc0b8 100644 --- a/src/job-manager.c +++ b/src/job-manager.c @@ -244,7 +244,7 @@ build_tree (TGallerySetup *setup, } /* Prepare target thumbnail directory */ - thumb_dir = g_strconcat (dst_dir, "/", THUMBNAIL_DIR, NULL); + thumb_dir = g_strconcat (dst_dir, "/", setup->thumbnail_dir, NULL); if (access (thumb_dir, R_OK | W_OK | X_OK)) if (g_mkdir_with_parents (thumb_dir, DEFAULT_DATA_DIR_MODE)) { fprintf (stderr, "error making target thumbnail directory: %s\n", strerror (errno)); @@ -258,8 +258,8 @@ build_tree (TGallerySetup *setup, if (items->type == GALLERY_TYPE_ALBUM) { res = TRUE; - img_big_dir = g_strconcat (dst_dir, "/", IMG_BIG_DIR, NULL); - img_orig_dir = g_strconcat (dst_dir, "/", IMG_ORIG_DIR, NULL); + img_big_dir = g_strconcat (dst_dir, "/", setup->img_big_dir, NULL); + img_orig_dir = g_strconcat (dst_dir, "/", setup->img_orig_dir, NULL); if (access (img_big_dir, R_OK | W_OK | X_OK)) if (g_mkdir_with_parents (img_big_dir, DEFAULT_DATA_DIR_MODE)) { fprintf (stderr, "error making target preview directory: %s\n", strerror (errno)); |
