[gnome-boxes] media-manager: Rename object to tracker_connection



commit f549c77487b3ad5a87a7dce6312de5e287a4d8ad
Author: Felipe Borges <felipeborges gnome org>
Date:   Thu Dec 16 15:34:45 2021 +0100

    media-manager: Rename object to tracker_connection
    
    Is more accurate.

 src/media-manager.vala | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/media-manager.vala b/src/media-manager.vala
index 3515ac7a..ed92716b 100644
--- a/src/media-manager.vala
+++ b/src/media-manager.vala
@@ -11,7 +11,7 @@
 
     public delegate void InstallerRecognized (Osinfo.Media os_media, Osinfo.Os os);
 
-    private Sparql.Connection connection;
+    private Sparql.Connection tracker_connection;
 
     public static MediaManager get_default () {
         if (media_manager == null)
@@ -91,7 +91,7 @@ else if (VMConfigurator.is_libvirt_cloning_config (config))
             list.concat (yield load_physical_medias ());
         #endif
 
-        if (connection != null)
+        if (tracker_connection != null)
             list.concat (yield load_medias_from_filesystem ());
 
         return list;
@@ -101,7 +101,7 @@ else if (VMConfigurator.is_libvirt_cloning_config (config))
         var list = new GLib.List<InstallerMedia> ();
 
         try {
-            var query = yield new TrackerISOQuery (connection);
+            var query = yield new TrackerISOQuery (tracker_connection);
             string path, title, os_id, media_id;
             string[] lang_list;
 
@@ -238,7 +238,7 @@ private MediaManager () {
 
     public async void connect_to_tracker () {
         try {
-            connection = Sparql.Connection.bus_new ("org.freedesktop.Tracker3.Miner.Files",
+            tracker_connection = Sparql.Connection.bus_new ("org.freedesktop.Tracker3.Miner.Files",
                                                     null, null);
         } catch (GLib.Error error) {
             if (!App.is_running_in_flatpak ()) {
@@ -249,7 +249,7 @@ public async void connect_to_tracker () {
 
             message ("Error connecting to host Tracker Miners: %s", error.message);
             try {
-                connection = Sparql.Connection.bus_new (Config.APPLICATION_ID + "Tracker3.Miner.Files",
+                tracker_connection = Sparql.Connection.bus_new (Config.APPLICATION_ID + 
"Tracker3.Miner.Files",
                                                         null, null);
             } catch (GLib.Error error) {
                 warning ("Error starting local Tracker Miners: %s", error.message);


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