Commit 3350a4c6 authored by Carlos Garnacho's avatar Carlos Garnacho

grilo: Prefer grl-tracker3-source

Prefer the tracker 3.x plugin over the tracker 2.x plugin.
parent 210c6569
Pipeline #188363 failed with stage
in 8 minutes and 35 seconds
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment