[geany/geany-plugins] 17e42d: projectorganizer: Use backslash dir separator under Windows

Jiří Techet git-noreply at xxxxx
Thu Dec 18 16:15:20 UTC 2014


Branch:      refs/heads/master
Author:      Jiří Techet <techet at gmail.com>
Committer:   Jiří Techet <techet at gmail.com>
Date:        Thu, 18 Dec 2014 16:15:20 UTC
Commit:      17e42d7dc3180753036db3eeea597e3cc7c7f385
             https://github.com/geany/geany-plugins/commit/17e42d7dc3180753036db3eeea597e3cc7c7f385

Log Message:
-----------
projectorganizer: Use backslash dir separator under Windows


Modified Paths:
--------------
    projectorganizer/src/prjorg-utils.c

Modified: projectorganizer/src/prjorg-utils.c
4 lines changed, 2 insertions(+), 2 deletions(-)
===================================================================
@@ -59,7 +59,7 @@ static gchar *relpath(const gchar *origin_dir, const gchar *dest_dir)
 		SETPTR(ret, g_build_filename(ret, destv[j], NULL));
 
 	if (strlen(ret) == 0)
-		SETPTR(ret, g_strdup("./"));
+		SETPTR(ret, g_strdup("."G_DIR_SEPARATOR_S));
 
 	g_free(origin);
 	g_free(dest);
@@ -82,7 +82,7 @@ gchar *get_file_relative_path(const gchar *origin_dir, const gchar *dest_file)
 
 		dest_basename = g_path_get_basename(dest_file);
 
-		if (g_strcmp0(ret, "./") != 0)
+		if (g_strcmp0(ret, "."G_DIR_SEPARATOR_S) != 0)
 		{
 			SETPTR(ret, g_build_filename(ret, dest_basename, NULL));
 		}



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Plugins-Commits mailing list