[totem/wip/carlosg/tracker3: 2/2] grilo: Prefer grl-tracker3-source
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem/wip/carlosg/tracker3: 2/2] grilo: Prefer grl-tracker3-source
- Date: Sun, 14 Jun 2020 19:08:51 +0000 (UTC)
commit 3350a4c61da5584fd13f26310521d9320523013b
Author: Carlos Garnacho <carlosg gnome org>
Date: Sun Jun 14 20:51:33 2020 +0200
grilo: Prefer grl-tracker3-source
Prefer the tracker 3.x plugin over the tracker 2.x plugin.
src/totem-grilo.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/totem-grilo.c b/src/totem-grilo.c
index b7bca92be..3961fa86c 100644
--- a/src/totem-grilo.c
+++ b/src/totem-grilo.c
@@ -246,7 +246,7 @@ source_is_recent (GrlSource *source)
{
const char *id;
const char * const sources[] = {
- "grl-tracker-source",
+ "grl-tracker3-source",
"grl-optical-media",
"grl-bookmarks",
NULL
@@ -612,7 +612,7 @@ get_source_priority (GrlSource *source)
return 100;
if (g_str_equal (id, "grl-bookmarks"))
return 75;
- if (g_str_equal (id, "grl-tracker-source"))
+ if (g_str_equal (id, "grl-tracker3-source"))
return 50;
if (g_str_has_prefix (id, "grl-upnp-") ||
g_str_has_prefix (id, "grl-dleyna-"))
@@ -1303,7 +1303,7 @@ source_added_cb (GrlRegistry *registry,
}
/* The local search source */
- if (g_str_equal (id, "grl-tracker-source"))
+ if (g_str_equal (id, "grl-tracker3-source"))
name = _("Local");
else
name = grl_source_get_name (source);
@@ -1316,7 +1316,7 @@ source_added_cb (GrlRegistry *registry,
browse (self, self->priv->recent_model,
NULL, source, NULL, -1);
/* https://gitlab.gnome.org/GNOME/grilo-plugins/merge_requests/29 */
- if (g_str_equal (id, "grl-tracker-source") == FALSE)
+ if (g_str_equal (id, "grl-tracker3-source") == FALSE)
monitor = TRUE;
} else if (!source_is_browse_blacklisted (source)) {
const GdkPixbuf *icon;
@@ -1957,7 +1957,7 @@ search_mode_changed (GObject *gobject,
/* Try to guess which source should be used for search */
model = gd_main_view_get_model (GD_MAIN_VIEW (self->priv->browser));
if (model == self->priv->recent_sort_model) {
- id = "grl-tracker-source";
+ id = "grl-tracker3-source";
self->priv->last_page = g_strdup ("recent");
} else {
GtkTreeIter iter;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]