changeset 711:d86748a2650a

Use g_build_filename().
author zas_
date Wed, 21 May 2008 00:12:19 +0000
parents a1e8c78a03ab
children d4a68dfa6819
files src/collect-dlg.c src/collect-io.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/collect-dlg.c	Wed May 21 00:01:03 2008 +0000
+++ b/src/collect-dlg.c	Wed May 21 00:12:19 2008 +0000
@@ -200,7 +200,7 @@
 	generic_dialog_add_message(GENERIC_DIALOG(fd), NULL, title, NULL);
 	file_dialog_add_button(fd, stock_id, btntext, btnfunc, TRUE);
 
-	base = g_strconcat(homedir(), "/", GQ_RC_DIR_COLLECTIONS, NULL);
+	base = g_build_filename(homedir(), GQ_RC_DIR_COLLECTIONS, NULL);
 	file_dialog_add_path_widgets(fd, base, path,
 				     "collection_load_save", ".gqv", _("Collection Files"));
 	g_free(base);
--- a/src/collect-io.c	Wed May 21 00:01:03 2008 +0000
+++ b/src/collect-io.c	Wed May 21 00:12:19 2008 +0000
@@ -669,7 +669,7 @@
 	GList *work;
 	gchar *base;
 
-	base = g_strconcat(homedir(), "/", GQ_RC_DIR_COLLECTIONS, NULL);
+	base = g_build_filename(homedir(), GQ_RC_DIR_COLLECTIONS, NULL);
 	filelist_read(base, &list, NULL);
 	g_free(base);