[grilo-plugins/tracker-notification: 16/17] tracker: use grl_data_key_is_known() instead of grl_data_has_key()



commit 6fea9bf994a8525325786b0e0608ecb94f8ea8c6
Author: Lionel Landwerlin <lionel g landwerlin linux intel com>
Date:   Fri Mar 4 15:27:43 2011 +0000

    tracker: use grl_data_key_is_known() instead of grl_data_has_key()
    
    Signed-off-by: Lionel Landwerlin <lionel g landwerlin linux intel com>

 src/media/tracker/grl-tracker-api.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/media/tracker/grl-tracker-api.c b/src/media/tracker/grl-tracker-api.c
index a8ec4a1..9fc59ee 100644
--- a/src/media/tracker/grl-tracker-api.c
+++ b/src/media/tracker/grl-tracker-api.c
@@ -214,7 +214,7 @@ fill_grilo_media_from_sparql (GrlTrackerSource    *source,
     return;
   }
 
-  if (grl_data_has_key (GRL_DATA (media), assoc->grl_key)) {
+  if (grl_data_key_is_known (GRL_DATA (media), assoc->grl_key)) {
     GRL_ODEBUG ("\t\tDropping, already here");
     return;
   }
@@ -667,8 +667,8 @@ grl_tracker_source_browse_category (GrlMediaSource *source,
   GRL_IDEBUG ("%s: id=%u", __FUNCTION__, bs->browse_id);
 
   if (bs->container == NULL ||
-      !grl_data_has_key (GRL_DATA (bs->container),
-                         grl_metadata_key_tracker_category)) {
+      !grl_data_key_is_known (GRL_DATA (bs->container),
+                              grl_metadata_key_tracker_category)) {
     /* Hardcoded categories */
     media = grl_media_box_new ();
     grl_media_set_title (media, "Music");



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