[PATCH 4/5] tracker: give "Local" name to datasources without mountpoints
- From: llandwerlin gmail com
- To: grilo-list gnome org
- Subject: [PATCH 4/5] tracker: give "Local" name to datasources without mountpoints
- Date: Tue, 25 Jan 2011 10:47:41 +0000
From: Lionel Landwerlin <lionel g landwerlin linux intel com>
Signed-off-by: Lionel Landwerlin <lionel g landwerlin linux intel com>
---
src/tracker/grl-tracker.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/tracker/grl-tracker.c b/src/tracker/grl-tracker.c
index f5e8ca1..3f11ed1 100644
--- a/src/tracker/grl-tracker.c
+++ b/src/tracker/grl-tracker.c
@@ -740,10 +740,12 @@ get_tracker_source_name (const gchar *uri, const gchar *datasource)
g_list_foreach (mounts, (GFunc) g_object_unref, NULL);
g_list_free (mounts);
g_object_unref (G_OBJECT (file));
- }
- if (source_name == NULL)
- source_name = g_strdup_printf ("%s %s", SOURCE_NAME, datasource);
+ if (source_name == NULL)
+ source_name = g_strdup_printf ("%s %s", SOURCE_NAME, datasource);
+ } else {
+ source_name = g_strdup (SOURCE_NAME " Local");
+ }
return source_name;
}
--
1.7.2.3
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]