[gnome-notes/wip/carlosg/tracker3: 12/12] libbiji: Adapt to tracker_sparql_connection_update*() Tracker3 API change



commit 013b7153077d14ec33b0176644c9596b3fb3eeef
Author: Carlos Garnacho <carlosg gnome org>
Date:   Fri Jun 19 12:31:35 2020 +0200

    libbiji: Adapt to tracker_sparql_connection_update*() Tracker3 API change
    
    The priority argument has been removed from this API.

 src/libbiji/biji-tracker.c | 8 ++++++++
 1 file changed, 8 insertions(+)
---
diff --git a/src/libbiji/biji-tracker.c b/src/libbiji/biji-tracker.c
index 206a2cc..85cb21d 100644
--- a/src/libbiji/biji-tracker.c
+++ b/src/libbiji/biji-tracker.c
@@ -15,6 +15,8 @@
  * with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+#include "config.h"
+
 #include "biji-item.h"
 #include "biji-tracker.h"
 
@@ -152,7 +154,9 @@ biji_perform_update_async_and_free (TrackerSparqlConnection *connection,
               (NULL, query, NULL, f, NULL, NULL, NULL, NULL, user_data);
   tracker_sparql_connection_update_async (connection,
                                           query,
+#if !HAVE_TRACKER3
                                           0,     // priority
+#endif
                                           NULL,
                                           biji_finish_update,
                                           finisher);
@@ -497,7 +501,9 @@ biji_create_new_notebook_async (BijiManager     *manager,
   finisher = biji_tracker_finisher_new (manager, g_strdup (name), NULL, NULL, NULL, item_cb, NULL, NULL, 
user_data);
   tracker_sparql_connection_update_blank_async (get_connection (manager),
                                                 query,
+#if !HAVE_TRACKER3
                                                 G_PRIORITY_DEFAULT,
+#endif
                                                 NULL,
                                                 on_new_notebook_query_executed,
                                                 finisher);
@@ -655,7 +661,9 @@ push_new_note (BijiTrackerFinisher *finisher)
 
   tracker_sparql_connection_update_blank_async (get_connection (manager),
                                                 query,
+#if !HAVE_TRACKER3
                                                 G_PRIORITY_DEFAULT,
+#endif
                                                 NULL,
                                                 NULL,  // callback,
                                                 NULL); // user_data);


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