# HG changeset patch # User zas_ # Date 1211329213 0 # Node ID 0f177c151368f2e39e28901b1de627e95c1649d8 # Parent e291995a7dc27c6fddd3df1d21cc758a64156786 Use g_build_filename() where applicable. diff -r e291995a7dc2 -r 0f177c151368 src/main.c --- 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);