changeset 2463:2f4d24bf7a97

Fix #130: Doubled path in thumbnail preferences https://github.com/BestImageViewer/geeqie/issues/130
author Colin Clark <cclark@mcb.net>
date Sun, 26 Mar 2017 11:42:10 +0100
parents e4c44411a090
children a235aad08c32
files src/cache_maint.c
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/cache_maint.c	Fri Mar 24 19:45:44 2017 +0000
+++ b/src/cache_maint.c	Sun Mar 26 11:42:10 2017 +0100
@@ -1042,11 +1042,8 @@
 {
 	GtkWidget *label;
 	gchar *buf;
-	gchar *path;
 
-	path = g_build_filename(homedir(), subdir, NULL);
-	buf = g_strdup_printf(_("Location: %s"), path);
-	g_free(path);
+	buf = g_strdup_printf(_("Location: %s"), subdir);
 	label = pref_label_new(group, buf);
 	g_free(buf);
 	gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.5);
@@ -1061,6 +1058,7 @@
 	GtkWidget *button;
 	GtkWidget *table;
 	GtkSizeGroup *sizegroup;
+	gchar *path;
 
 	if (cache_manager)
 		{
@@ -1105,7 +1103,9 @@
 
 	group = pref_group_new(gd->vbox, FALSE, _("Shared thumbnail cache"), GTK_ORIENTATION_VERTICAL);
 
-	cache_manager_location_label(group, THUMB_FOLDER_GLOBAL);
+	path = g_build_filename(homedir(), THUMB_FOLDER_GLOBAL, NULL);
+	cache_manager_location_label(group, path);
+	g_free(path);
 
 	table = pref_table_new(group, 2, 2, FALSE, FALSE);