[easytag] Use g_build_filename() in a couple more places
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [easytag] Use g_build_filename() in a couple more places
- Date: Sat, 21 Feb 2015 18:11:40 +0000 (UTC)
commit 6671ad6aa83456325dceaef32e276748f205abad
Author: David King <amigadave amigadave com>
Date: Sat Feb 21 16:05:35 2015 +0000
Use g_build_filename() in a couple more places
src/browser.c | 3 +--
src/scan_dialog.c | 3 ++-
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/browser.c b/src/browser.c
index eefff15..cd38ba3 100644
--- a/src/browser.c
+++ b/src/browser.c
@@ -1079,8 +1079,7 @@ et_browser_select_dir (EtBrowser *self, const gchar *current_path)
gtk_tree_model_get (GTK_TREE_MODEL (priv->directory_model),
&parentNode, TREE_COLUMN_FULL_PATH,
&parent_path, -1);
- path = g_build_path (G_DIR_SEPARATOR_S, parent_path, parts[index],
- NULL);
+ path = g_build_filename (parent_path, parts[index], NULL);
g_free (parent_path);
file = g_file_new_for_path (path);
diff --git a/src/scan_dialog.c b/src/scan_dialog.c
index a5427df..3b13462 100644
--- a/src/scan_dialog.c
+++ b/src/scan_dialog.c
@@ -1074,7 +1074,8 @@ et_scan_generate_new_filename_from_mask (const ET_File *ETFile,
if (path_utf8_cur)
{
filename_tmp = filename_new_utf8; // in UTF-8!
- filename_new_utf8 = g_strconcat(path_utf8_cur,G_DIR_SEPARATOR_S,filename_new_utf8,NULL);
+ filename_new_utf8 = g_build_filename (path_utf8_cur, filename_new_utf8,
+ NULL);
g_free(filename_tmp);
g_free(path_utf8_cur);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]