[grilo-plugins] tracker: give "Local" name to datasources without mountpoints
- From: Juan A. Suarez Romero <jasuarez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins] tracker: give "Local" name to datasources without mountpoints
- Date: Thu, 27 Jan 2011 10:07:08 +0000 (UTC)
commit 163f09b28c79e5e91689751ef9f5d64189ec1a89
Author: Lionel Landwerlin <lionel g landwerlin linux intel com>
Date: Tue Jan 25 10:47:41 2011 +0000
tracker: give "Local" name to datasources without mountpoints
Signed-off-by: Lionel Landwerlin <lionel g landwerlin linux intel com>
Signed-off-by: Juan A. Suarez Romero <jasuarez igalia 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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]