[tracker/wip/carlosg/parallel-installable: 18/21] examples: Update DBus names in rss-reader example



commit bb8893ed68ff63922a63fee77ee9ddec69b791f4
Author: Carlos Garnacho <carlosg gnome org>
Date:   Sun Mar 8 14:45:01 2020 +0100

    examples: Update DBus names in rss-reader example
    
    To no avail. It's still hopelessly outdated :(.

 examples/rss-reader/main.py            | 12 ++++++------
 examples/rss-reader/signaler.py        |  6 +++---
 examples/rss-reader/tracker_backend.py |  6 +++---
 3 files changed, 12 insertions(+), 12 deletions(-)
---
diff --git a/examples/rss-reader/main.py b/examples/rss-reader/main.py
index 9a2e7c122..b0c41c053 100755
--- a/examples/rss-reader/main.py
+++ b/examples/rss-reader/main.py
@@ -232,18 +232,18 @@ if __name__ == "__main__":
     bus = dbus.SessionBus (dbus_loop)
     bus.add_signal_receiver (notification_addition,
                              signal_name="SubjectsAdded",
-                             dbus_interface="org.freedesktop.Tracker1.Resources.Class",
-                             path="/org/freedesktop/Tracker1/Resources/Classes/mfo/FeedMessage")
+                             dbus_interface="org.freedesktop.Tracker3.Resources.Class",
+                             path="/org/freedesktop/Tracker3/Resources/Classes/mfo/FeedMessage")
 
     bus.add_signal_receiver (notification_removal,
                              signal_name="SubjectsRemoved",
-                             dbus_interface="org.freedesktop.Tracker1.Resources.Class",
-                             path="/org/freedesktop/Tracker1/Resources/Classes/mfo/FeedMessage")
+                             dbus_interface="org.freedesktop.Tracker3.Resources.Class",
+                             path="/org/freedesktop/Tracker3/Resources/Classes/mfo/FeedMessage")
 
     bus.add_signal_receiver (notification_update,
                              signal_name="SubjectsChanged",
-                             dbus_interface="org.freedesktop.Tracker1.Resources.Class",
-                             path="/org/freedesktop/Tracker1/Resources/Classes/mfo/FeedMessage")
+                             dbus_interface="org.freedesktop.Tracker3.Resources.Class",
+                             path="/org/freedesktop/Tracker3/Resources/Classes/mfo/FeedMessage")
 
     window = ui.get_object ("main_window")
     gobject.set_application_name ("Rss/tracker")
diff --git a/examples/rss-reader/signaler.py b/examples/rss-reader/signaler.py
index 5816f2235..4acb29832 100755
--- a/examples/rss-reader/signaler.py
+++ b/examples/rss-reader/signaler.py
@@ -33,8 +33,8 @@ except ImportError:
     print "No barnum. Crappy random"
     barnum_available = False
 
-TRACKER = 'org.freedesktop.Tracker1'
-TRACKER_OBJ = '/org/freedesktop/Tracker1/Resources'
+TRACKER = 'org.freedesktop.Tracker3'
+TRACKER_OBJ = '/org/freedesktop/Tracker3/Resources'
 
 # We are not inserting content, nor contributor!
 INSERT_SPARQL = """
@@ -59,7 +59,7 @@ class SignalerUI (gtk.Window):
         bus = dbus.SessionBus ()
         tracker = bus.get_object (TRACKER, TRACKER_OBJ)
         self.iface = dbus.Interface (tracker,
-                                     "org.freedesktop.Tracker1.Resources")
+                                     "org.freedesktop.Tracker3.Resources")
 
         vbox = gtk.VBox ()
 
diff --git a/examples/rss-reader/tracker_backend.py b/examples/rss-reader/tracker_backend.py
index 35d8f715a..682194ed5 100644
--- a/examples/rss-reader/tracker_backend.py
+++ b/examples/rss-reader/tracker_backend.py
@@ -21,8 +21,8 @@
 import dbus
 import os
 
-TRACKER = 'org.freedesktop.Tracker1'
-TRACKER_OBJ = '/org/freedesktop/Tracker1/Resources'
+TRACKER = 'org.freedesktop.Tracker3'
+TRACKER_OBJ = '/org/freedesktop/Tracker3/Resources'
 
 FALSE = "false"
 TRUE = "true"
@@ -78,7 +78,7 @@ class TrackerRSS:
         bus = dbus.SessionBus ()
         self.tracker = bus.get_object (TRACKER, TRACKER_OBJ)
         self.iface = dbus.Interface (self.tracker,
-                                     "org.freedesktop.Tracker1.Resources")
+                                     "org.freedesktop.Tracker3.Resources")
         self.invisible_feeds = []
         self.load_config ()
         


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