[gnome-photos] Rename a function for clarity



commit ac5928f167baf59453a331d6c4b5a98fa55d52b3
Author: Debarshi Ray <debarshir gnome org>
Date:   Mon Feb 5 19:51:29 2018 +0100

    Rename a function for clarity
    
    Contrary to its name, photos_query_builder_fetch_collections_query
    fetches all the collections that a given URN is part of. It doesn't
    just fetch all available collections.

 src/photos-fetch-collections-job.c | 2 +-
 src/photos-query-builder.c         | 2 +-
 src/photos-query-builder.h         | 3 ++-
 3 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/photos-fetch-collections-job.c b/src/photos-fetch-collections-job.c
index 02e65c9d..610a9a81 100644
--- a/src/photos-fetch-collections-job.c
+++ b/src/photos-fetch-collections-job.c
@@ -250,7 +250,7 @@ photos_fetch_collections_job_run (PhotosFetchCollectionsJob *self,
   app = g_application_get_default ();
   state = photos_search_context_get_state (PHOTOS_SEARCH_CONTEXT (app));
 
-  query = photos_query_builder_fetch_collections_query (state, self->urn);
+  query = photos_query_builder_fetch_collections_for_urn_query (state, self->urn);
   photos_tracker_queue_select (self->queue,
                                query,
                                cancellable,
diff --git a/src/photos-query-builder.c b/src/photos-query-builder.c
index 5e2742f5..66b435c7 100644
--- a/src/photos-query-builder.c
+++ b/src/photos-query-builder.c
@@ -276,7 +276,7 @@ photos_query_builder_equipment_query (PhotosSearchContextState *state, GQuark eq
 
 
 PhotosQuery *
-photos_query_builder_fetch_collections_query (PhotosSearchContextState *state, const gchar *resource)
+photos_query_builder_fetch_collections_for_urn_query (PhotosSearchContextState *state, const gchar *resource)
 {
   PhotosQuery *query;
   g_autofree gchar *sparql = NULL;
diff --git a/src/photos-query-builder.h b/src/photos-query-builder.h
index 68604778..a895529b 100644
--- a/src/photos-query-builder.h
+++ b/src/photos-query-builder.h
@@ -41,7 +41,8 @@ PhotosQuery  *photos_query_builder_delete_resource_query (PhotosSearchContextSta
 
 PhotosQuery  *photos_query_builder_equipment_query (PhotosSearchContextState *state, GQuark equipment);
 
-PhotosQuery  *photos_query_builder_fetch_collections_query (PhotosSearchContextState *state, const gchar 
*resource);
+PhotosQuery  *photos_query_builder_fetch_collections_for_urn_query (PhotosSearchContextState *state,
+                                                                    const gchar *resource);
 
 PhotosQuery  *photos_query_builder_global_query        (PhotosSearchContextState *state,
                                                         gint flags,


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