summaryrefslogtreecommitdiff
path: root/src/nautilus-global-preferences.c
diff options
context:
space:
mode:
authorCarlos Soriano <csoriano@redhat.com>2019-01-29 16:24:43 +0100
committerCarlos Soriano <csoriano@redhat.com>2019-02-04 19:16:48 +0100
commit7f19a036491cb27579daa674aaf7f5353d910709 (patch)
treec7b2292fda3558c6f3c07bb4d8912daff9d67f4a /src/nautilus-global-preferences.c
parent0d12969029b9923457033a44c49bbeb7c142769c (diff)
downloadnautilus-7f19a036491cb27579daa674aaf7f5353d910709.tar.gz
files-view: Use tracked directories for star
We were using the xdg directories to check whether we can star a file or not, since the star feature only works on directories that are tracked by tracker. Tracker is usually shipped in distributions tracking the xdg-directories, so we check that as a stop gap solution for 3.30 since we didn't have time to actually query what directories tracker is tracking and match that. This work makes it so that we show the star action on tracked directories.
Diffstat (limited to 'src/nautilus-global-preferences.c')
-rw-r--r--src/nautilus-global-preferences.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nautilus-global-preferences.c b/src/nautilus-global-preferences.c
index 8fc9baadf..0e7e011b6 100644
--- a/src/nautilus-global-preferences.c
+++ b/src/nautilus-global-preferences.c
@@ -41,6 +41,7 @@ GSettings *gtk_filechooser_preferences;
GSettings *gnome_lockdown_preferences;
GSettings *gnome_background_preferences;
GSettings *gnome_interface_preferences;
+GSettings *tracker_preferences;
void
nautilus_global_preferences_init (void)
@@ -65,4 +66,5 @@ nautilus_global_preferences_init (void)
gnome_lockdown_preferences = g_settings_new ("org.gnome.desktop.lockdown");
gnome_background_preferences = g_settings_new ("org.gnome.desktop.background");
gnome_interface_preferences = g_settings_new ("org.gnome.desktop.interface");
+ tracker_preferences = g_settings_new ("org.freedesktop.Tracker.Miner.Files");
}