Diff of /src/sys_GTK.c [e2313b] .. [7f5316] Maximize Restore

  Switch to side-by-side view

--- a/src/sys_GTK.c
+++ b/src/sys_GTK.c
@@ -174,18 +174,13 @@
 		struct size_Prefs			s;
 		panControls					pc;
 	} prf;
-	char *home_dir;
 	char prefname[512];
 	long size;
 
 	FILE 	*prfile;
 	int result = 0;
 
-	home_dir = getenv ("HOME");
-	if (!home_dir)
-		return -1;
-	sprintf (prefname, "%s/.gimp-2.0/pano13.prf", home_dir);
-
+	snprintf (prefname, 512, "%s%cpano13.prf", gimp_directory(), G_DIR_SEPARATOR);
 
 	if( (prfile = fopen( prefname, "rb" )) != NULL )
 	{
@@ -278,14 +273,9 @@
 	} prf;
 
 	FILE 	*prfile;
-	char *home_dir;
 	char prefname[512];
 
-
-	home_dir = getenv ("HOME");
-	if (!home_dir)
-		return ;
-	sprintf (prefname, "%s/.gimp-2.0/pano13.prf", home_dir);
+	snprintf (prefname, 512, "%s%cpano13.prf", gimp_directory(), G_DIR_SEPARATOR);
 
 	if( (prfile = fopen( prefname, "rb" )) != NULL )
 	{