[tracker] tracker-tag: Convert files used using g_file_new_for_commandline_arg()
- From: Martyn James Russell <mr src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker] tracker-tag: Convert files used using g_file_new_for_commandline_arg()
- Date: Mon, 30 Nov 2009 21:34:29 +0000 (UTC)
commit 3b8a8f904bf91cac1c389b20bac486f80eae597b
Author: Martyn Russell <martyn lanedo com>
Date: Mon Nov 30 09:54:55 2009 +0000
tracker-tag: Convert files used using g_file_new_for_commandline_arg()
src/tracker-utils/tracker-tag.c | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/src/tracker-utils/tracker-tag.c b/src/tracker-utils/tracker-tag.c
index 2a5831f..75c4a65 100644
--- a/src/tracker-utils/tracker-tag.c
+++ b/src/tracker-utils/tracker-tag.c
@@ -211,7 +211,15 @@ get_filter_string (GStrv files,
}
for (i = 0; i < len; i++) {
- g_string_append_printf (filter, "?f = <%s>", files[i]);
+ GFile *file;
+ gchar *uri;
+
+ file = g_file_new_for_commandline_arg (files[i]);
+ uri = g_file_get_uri (file);
+ g_object_unref (file);
+
+ g_string_append_printf (filter, "?f = <%s>", uri);
+ g_free (uri);
if (i < len - 1) {
g_string_append (filter, " || ");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]