[gnome-photos] query-builder: Replace ~/Documents with ~/Pictures in filter_local



commit e8f3e9a0a0066faaa7fcf5cde85ed92f3e84eb82
Author: Debarshi Ray <debarshir gnome org>
Date:   Sat May 12 16:12:36 2012 +0200

    query-builder: Replace ~/Documents with ~/Pictures in filter_local

 src/photos-query-builder.c |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/photos-query-builder.c b/src/photos-query-builder.c
index 24bb4a7..b8f46a1 100644
--- a/src/photos-query-builder.c
+++ b/src/photos-query-builder.c
@@ -161,29 +161,29 @@ photos_query_builder_filter_local (void)
 {
   GFile *file;
   gchar *desktop_uri;
-  gchar *documents_uri;
   gchar *download_uri;
   gchar *filter;
   const gchar *path;
+  gchar *pictures_uri;
 
   path = g_get_user_special_dir (G_USER_DIRECTORY_DESKTOP);
   desktop_uri = photos_query_builder_convert_path_to_uri (path);
 
-  path = g_get_user_special_dir (G_USER_DIRECTORY_DOCUMENTS);
-  documents_uri = photos_query_builder_convert_path_to_uri (path);
-
   path = g_get_user_special_dir (G_USER_DIRECTORY_DOWNLOAD);
   download_uri = photos_query_builder_convert_path_to_uri (path);
 
+  path = g_get_user_special_dir (G_USER_DIRECTORY_PICTURES);
+  pictures_uri = photos_query_builder_convert_path_to_uri (path);
+
   filter = g_strdup_printf ("((fn:starts-with (nie:url (?urn), \"%s\"))"
                             " || (fn:starts-with (nie:url (?urn), \"%s\"))"
                             " || (fn:starts-with (nie:url (?urn), \"%s\")))",
                             desktop_uri,
-                            documents_uri,
-                            download_uri);
+                            download_uri,
+                            pictures_uri);
   g_free (desktop_uri);
-  g_free (documents_uri);
   g_free (download_uri);
+  g_free (pictures_uri);
 
   return filter;
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]