From 6a54c7817bb71fde9234e7b89e87f1f349920ea1 Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Sat, 11 Apr 2009 12:59:58 +0200 Subject: User customizable image directories --- src/job-manager.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/job-manager.c') 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)); -- cgit v1.2.3