[gnome-photos] application: Pass "photos" as the index type to	RefreshDB
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gnome-photos] application: Pass "photos" as the index type to	RefreshDB
- Date: Mon,  7 Jul 2014 11:57:53 +0000 (UTC)
commit c06824cd5c9ca4d5a7892c5372ea3aa63bdf5900
Author: Saurav Agarwalla <saurav agarwalla92 gmail com>
Date:   Thu Jul 3 16:02:18 2014 +0530
    application: Pass "photos" as the index type to RefreshDB
    
    https://bugzilla.gnome.org/show_bug.cgi?id=732676
 src/photos-application.c |    3 ++-
 src/photos-gom-miner.xml |    4 +++-
 2 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/photos-application.c b/src/photos-application.c
index b8cf751..b6d7bb8 100644
--- a/src/photos-application.c
+++ b/src/photos-application.c
@@ -428,6 +428,7 @@ photos_application_refresh_miner_now (PhotosApplication *self, GomMiner *miner)
 {
   PhotosApplicationPrivate *priv = self->priv;
   GCancellable *cancellable;
+  const gchar *const index_types[] = {"photos", NULL};
 
   if (g_getenv ("PHOTOS_DISABLE_MINERS") != NULL)
     goto out;
@@ -437,7 +438,7 @@ photos_application_refresh_miner_now (PhotosApplication *self, GomMiner *miner)
 
   cancellable = g_cancellable_new ();
   g_object_set_data_full (G_OBJECT (miner), "cancellable", cancellable, g_object_unref);
-  gom_miner_call_refresh_db (miner, cancellable, photos_application_refresh_db, g_object_ref (self));
+  gom_miner_call_refresh_db (miner, index_types, cancellable, photos_application_refresh_db, g_object_ref 
(self));
 
  out:
   return G_SOURCE_REMOVE;
diff --git a/src/photos-gom-miner.xml b/src/photos-gom-miner.xml
index 94ff188..6a7a49a 100644
--- a/src/photos-gom-miner.xml
+++ b/src/photos-gom-miner.xml
@@ -24,7 +24,9 @@
 
 <node name="/" xmlns:doc="http://www.freedesktop.org/dbus/1.0/doc.dtd">
   <interface name="org.gnome.OnlineMiners.Miner">
-    <method name="RefreshDB" />
+    <method name="RefreshDB">
+      <arg name="index_types" type="as" direction="in" />
+    </method>
     <property name="DisplayName" type="s" access="read" />
   </interface>
 </node>
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]