Mercurial > geeqie
changeset 714:0f177c151368
Use g_build_filename() where applicable.
author | zas_ |
---|---|
date | Wed, 21 May 2008 00:20:13 +0000 |
parents | e291995a7dc2 |
children | 179a7224dde1 |
files | src/main.c |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main.c Wed May 21 00:15:41 2008 +0000 +++ b/src/main.c Wed May 21 00:20:13 2008 +0000 @@ -515,7 +515,7 @@ { gchar *path; - path = g_strconcat(homedir(), "/", GQ_RC_DIR, "/", RC_HISTORY_NAME, NULL); + path = g_build_filename(homedir(), GQ_RC_DIR, RC_HISTORY_NAME, NULL); history_list_load(path); g_free(path); } @@ -524,7 +524,7 @@ { gchar *path; - path = g_strconcat(homedir(), "/", GQ_RC_DIR, "/", RC_HISTORY_NAME, NULL); + path = g_build_filename(homedir(), GQ_RC_DIR, RC_HISTORY_NAME, NULL); history_list_save(path); g_free(path); } @@ -533,7 +533,7 @@ { gchar *buf; - buf = g_strconcat(homedir(), "/", path, NULL); + buf = g_build_filename(homedir(), path, NULL); if (!isdir(buf)) { log_printf(_("Creating %s dir:%s\n"), GQ_APPNAME, buf); @@ -633,7 +633,7 @@ save_options(); keys_save(); - path = g_strconcat(homedir(), "/", GQ_RC_DIR, "/accels", NULL); + path = g_build_filename(homedir(), GQ_RC_DIR, "accels", NULL); pathl = path_from_utf8(path); gtk_accel_map_save(pathl); g_free(pathl); @@ -764,7 +764,7 @@ filter_add_defaults(); filter_rebuild(); - buf = g_strconcat(homedir(), "/", GQ_RC_DIR, "/accels", NULL); + buf = g_build_filename(homedir(), GQ_RC_DIR, "accels", NULL); bufl = path_from_utf8(buf); gtk_accel_map_load(bufl); g_free(bufl); @@ -893,7 +893,7 @@ if (startup_full_screen) layout_image_full_screen_start(lw); if (startup_in_slideshow) layout_image_slideshow_start(lw); - buf = g_strconcat(homedir(), "/", GQ_RC_DIR, "/.command", NULL); + buf = g_build_filename(homedir(), GQ_RC_DIR, ".command", NULL); remote_connection = remote_server_init(buf, cd); g_free(buf);