[tracker-miners/wip/nielsdg/g-param-static-strings] Always use G_PARAM_STATIC_STRINGS for properties



commit 5ac4e7faeb85d784e3cf2fa36f43be21cd2fd04f
Author: Niels De Graef <nielsdegraef gmail com>
Date:   Sat Jan 4 14:14:11 2020 +0100

    Always use G_PARAM_STATIC_STRINGS for properties
    
    This prevents some unnecessary string copies (and memory usage).

 src/libtracker-miner/tracker-crawler.c            |  3 +-
 src/libtracker-miner/tracker-decorator.c          | 12 +++++---
 src/libtracker-miner/tracker-file-notifier.c      |  9 ++++--
 src/libtracker-miner/tracker-file-system.c        |  4 ++-
 src/libtracker-miner/tracker-indexing-tree.c      |  4 +--
 src/libtracker-miner/tracker-miner-fs.c           | 10 +++----
 src/libtracker-miner/tracker-miner-object.c       | 15 +++++++---
 src/libtracker-miner/tracker-miner-online.c       |  2 +-
 src/libtracker-miner/tracker-miner-proxy.c        |  9 ++++--
 src/libtracker-miner/tracker-monitor.c            |  2 +-
 src/libtracker-miner/tracker-sparql-buffer.c      |  3 +-
 src/libtracker-miner/tracker-task-pool.c          |  4 +--
 src/miners/fs/tracker-config.c                    | 36 +++++++++++------------
 src/miners/fs/tracker-miner-files-index.c         |  2 +-
 src/miners/fs/tracker-miner-files-peer-listener.c |  2 +-
 src/miners/fs/tracker-miner-files.c               |  2 +-
 src/miners/fs/tracker-power-hal.c                 |  4 +--
 src/miners/fs/tracker-power-upower.c              |  4 +--
 src/miners/fs/tracker-writeback-dispatcher.c      |  2 +-
 src/miners/fs/tracker-writeback-listener.c        |  2 +-
 src/tracker-extract/tracker-extract-decorator.c   |  3 +-
 src/tracker-writeback/tracker-config.c            |  3 +-
 src/tracker-writeback/tracker-writeback.c         |  4 ++-
 23 files changed, 83 insertions(+), 58 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-crawler.c b/src/libtracker-miner/tracker-crawler.c
index 56c3a45e9..c0d36fd6c 100644
--- a/src/libtracker-miner/tracker-crawler.c
+++ b/src/libtracker-miner/tracker-crawler.c
@@ -228,7 +228,8 @@ tracker_crawler_class_init (TrackerCrawlerClass *klass)
                                                              "Data provider to use to crawl structures 
populating data, e.g. like GFileEnumerator",
                                                              TRACKER_TYPE_DATA_PROVIDER,
                                                              G_PARAM_READWRITE |
-                                                             G_PARAM_CONSTRUCT_ONLY));
+                                                             G_PARAM_CONSTRUCT_ONLY |
+                                                             G_PARAM_STATIC_STRINGS));
 
        file_info_quark = g_quark_from_static_string ("tracker-crawler-file-info");
 }
diff --git a/src/libtracker-miner/tracker-decorator.c b/src/libtracker-miner/tracker-decorator.c
index ef76c15c7..f5a65bd30 100644
--- a/src/libtracker-miner/tracker-decorator.c
+++ b/src/libtracker-miner/tracker-decorator.c
@@ -1229,28 +1229,32 @@ tracker_decorator_class_init (TrackerDecoratorClass *klass)
                                                              "nie:DataSource to use in this decorator",
                                                              NULL,
                                                              G_PARAM_READWRITE |
-                                                             G_PARAM_CONSTRUCT_ONLY));
+                                                             G_PARAM_CONSTRUCT_ONLY |
+                                                             G_PARAM_STATIC_STRINGS));
        g_object_class_install_property (object_class,
                                         PROP_CLASS_NAMES,
                                         g_param_spec_boxed ("class-names",
                                                             "Class names",
                                                             "rdfs:Class objects to listen to for changes",
                                                             G_TYPE_STRV,
-                                                            G_PARAM_READWRITE));
+                                                            G_PARAM_READWRITE |
+                                                            G_PARAM_STATIC_STRINGS));
        g_object_class_install_property (object_class,
                                         PROP_COMMIT_BATCH_SIZE,
                                         g_param_spec_int ("commit-batch-size",
                                                           "Commit batch size",
                                                           "Number of items per update batch",
                                                           0, G_MAXINT, DEFAULT_BATCH_SIZE,
-                                                          G_PARAM_READWRITE));
+                                                          G_PARAM_READWRITE |
+                                                          G_PARAM_STATIC_STRINGS));
        g_object_class_install_property (object_class,
                                         PROP_PRIORITY_RDF_TYPES,
                                         g_param_spec_boxed ("priority-rdf-types",
                                                             "Priority RDF types",
                                                             "rdf:type that needs to be extracted first",
                                                             G_TYPE_STRV,
-                                                            G_PARAM_WRITABLE));
+                                                            G_PARAM_WRITABLE |
+                                                            G_PARAM_STATIC_STRINGS));
        /**
         * TrackerDecorator::items-available:
         * @decorator: the #TrackerDecorator
diff --git a/src/libtracker-miner/tracker-file-notifier.c b/src/libtracker-miner/tracker-file-notifier.c
index 93b4adda6..81dc129b2 100644
--- a/src/libtracker-miner/tracker-file-notifier.c
+++ b/src/libtracker-miner/tracker-file-notifier.c
@@ -1914,7 +1914,8 @@ tracker_file_notifier_class_init (TrackerFileNotifierClass *klass)
                                                              "Indexing tree",
                                                              TRACKER_TYPE_INDEXING_TREE,
                                                              G_PARAM_READWRITE |
-                                                             G_PARAM_CONSTRUCT_ONLY));
+                                                             G_PARAM_CONSTRUCT_ONLY |
+                                                             G_PARAM_STATIC_STRINGS));
        g_object_class_install_property (object_class,
                                         PROP_DATA_PROVIDER,
                                         g_param_spec_object ("data-provider",
@@ -1922,7 +1923,8 @@ tracker_file_notifier_class_init (TrackerFileNotifierClass *klass)
                                                              "Data provider to use to crawl structures 
populating data, e.g. like GFileEnumerator",
                                                              TRACKER_TYPE_DATA_PROVIDER,
                                                              G_PARAM_READWRITE |
-                                                             G_PARAM_CONSTRUCT_ONLY));
+                                                             G_PARAM_CONSTRUCT_ONLY |
+                                                             G_PARAM_STATIC_STRINGS));
        g_object_class_install_property (object_class,
                                         PROP_CONNECTION,
                                         g_param_spec_object ("connection",
@@ -1930,7 +1932,8 @@ tracker_file_notifier_class_init (TrackerFileNotifierClass *klass)
                                                              "Connection to use for queries",
                                                              TRACKER_SPARQL_TYPE_CONNECTION,
                                                              G_PARAM_READWRITE |
-                                                             G_PARAM_CONSTRUCT_ONLY));
+                                                             G_PARAM_CONSTRUCT_ONLY |
+                                                             G_PARAM_STATIC_STRINGS));
 
        /* Initialize property quarks */
        quark_property_iri = g_quark_from_static_string ("tracker-property-iri");
diff --git a/src/libtracker-miner/tracker-file-system.c b/src/libtracker-miner/tracker-file-system.c
index 5e92602f0..2a239a3e6 100644
--- a/src/libtracker-miner/tracker-file-system.c
+++ b/src/libtracker-miner/tracker-file-system.c
@@ -433,7 +433,9 @@ tracker_file_system_class_init (TrackerFileSystemClass *klass)
                                                              "Root URL",
                                                              "The root GFile for the indexing tree",
                                                              G_TYPE_FILE,
-                                                             G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
+                                                             G_PARAM_READWRITE |
+                                                             G_PARAM_CONSTRUCT_ONLY |
+                                                             G_PARAM_STATIC_STRINGS));
 
        quark_file_node =
                g_quark_from_static_string ("tracker-quark-file-node");
diff --git a/src/libtracker-miner/tracker-indexing-tree.c b/src/libtracker-miner/tracker-indexing-tree.c
index 8d8a00290..0ff35968c 100644
--- a/src/libtracker-miner/tracker-indexing-tree.c
+++ b/src/libtracker-miner/tracker-indexing-tree.c
@@ -256,7 +256,7 @@ tracker_indexing_tree_class_init (TrackerIndexingTreeClass *klass)
                                                              "Root URL",
                                                              "The root GFile for the indexing tree",
                                                              G_TYPE_FILE,
-                                                             G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
+                                                             G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | 
G_PARAM_STATIC_STRINGS));
 
        g_object_class_install_property (object_class,
                                         PROP_FILTER_HIDDEN,
@@ -264,7 +264,7 @@ tracker_indexing_tree_class_init (TrackerIndexingTreeClass *klass)
                                                               "Filter hidden",
                                                               "Whether hidden resources are filtered",
                                                               FALSE,
-                                                              G_PARAM_READWRITE));
+                                                              G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
        /**
         * TrackerIndexingTree::directory-added:
         * @indexing_tree: a #TrackerIndexingTree
diff --git a/src/libtracker-miner/tracker-miner-fs.c b/src/libtracker-miner/tracker-miner-fs.c
index 986451275..92054362a 100644
--- a/src/libtracker-miner/tracker-miner-fs.c
+++ b/src/libtracker-miner/tracker-miner-fs.c
@@ -321,14 +321,14 @@ tracker_miner_fs_class_init (TrackerMinerFSClass *klass)
                                                              "Throttle",
                                                              "Modifier for the indexing speed, 0 is max 
speed",
                                                              0, 1, 0,
-                                                             G_PARAM_READWRITE));
+                                                             G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
        g_object_class_install_property (object_class,
                                         PROP_ROOT,
                                         g_param_spec_object ("root",
                                                              "Root",
                                                              "Top level URI for our indexing tree and file 
notify clases",
                                                              G_TYPE_FILE,
-                                                             G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
+                                                             G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | 
G_PARAM_STATIC_STRINGS));
        g_object_class_install_property (object_class,
                                         PROP_WAIT_POOL_LIMIT,
                                         g_param_spec_uint ("processing-pool-wait-limit",
@@ -336,7 +336,7 @@ tracker_miner_fs_class_init (TrackerMinerFSClass *klass)
                                                            "Maximum number of files that can be concurrently 
"
                                                            "processed by the upper layer",
                                                            1, G_MAXUINT, DEFAULT_WAIT_POOL_LIMIT,
-                                                           G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
+                                                           G_PARAM_READWRITE | G_PARAM_CONSTRUCT | 
G_PARAM_STATIC_STRINGS));
        g_object_class_install_property (object_class,
                                         PROP_READY_POOL_LIMIT,
                                         g_param_spec_uint ("processing-pool-ready-limit",
@@ -344,14 +344,14 @@ tracker_miner_fs_class_init (TrackerMinerFSClass *klass)
                                                            "Maximum number of SPARQL updates that can be 
merged "
                                                            "in a single connection to the store",
                                                            1, G_MAXUINT, DEFAULT_READY_POOL_LIMIT,
-                                                           G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
+                                                           G_PARAM_READWRITE | G_PARAM_CONSTRUCT | 
G_PARAM_STATIC_STRINGS));
        g_object_class_install_property (object_class,
                                         PROP_DATA_PROVIDER,
                                         g_param_spec_object ("data-provider",
                                                              "Data provider",
                                                              "Data provider populating data, e.g. like 
GFileEnumerator",
                                                              TRACKER_TYPE_DATA_PROVIDER,
-                                                             G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
+                                                             G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | 
G_PARAM_STATIC_STRINGS));
 
        /**
         * TrackerMinerFS::process-file:
diff --git a/src/libtracker-miner/tracker-miner-object.c b/src/libtracker-miner/tracker-miner-object.c
index 37c46b417..4bea37c5d 100644
--- a/src/libtracker-miner/tracker-miner-object.c
+++ b/src/libtracker-miner/tracker-miner-object.c
@@ -237,7 +237,9 @@ tracker_miner_class_init (TrackerMinerClass *klass)
                                                              "Status",
                                                              "Translatable string with status description",
                                                              "Idle",
-                                                             G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
+                                                             G_PARAM_READWRITE |
+                                                             G_PARAM_CONSTRUCT |
+                                                             G_PARAM_STATIC_STRINGS));
        g_object_class_install_property (object_class,
                                         PROP_PROGRESS,
                                         g_param_spec_double ("progress",
@@ -246,7 +248,9 @@ tracker_miner_class_init (TrackerMinerClass *klass)
                                                              0.0,
                                                              1.0,
                                                              0.0,
-                                                             G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
+                                                             G_PARAM_READWRITE |
+                                                             G_PARAM_CONSTRUCT |
+                                                             G_PARAM_STATIC_STRINGS));
 
        g_object_class_install_property (object_class,
                                         PROP_REMAINING_TIME,
@@ -256,7 +260,9 @@ tracker_miner_class_init (TrackerMinerClass *klass)
                                                           -1,
                                                           G_MAXINT,
                                                           -1,
-                                                          G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
+                                                          G_PARAM_READWRITE |
+                                                          G_PARAM_CONSTRUCT |
+                                                          G_PARAM_STATIC_STRINGS));
        /**
         * TrackerMiner:connection:
         *
@@ -273,7 +279,8 @@ tracker_miner_class_init (TrackerMinerClass *klass)
                                                              "SPARQL Connection",
                                                              TRACKER_SPARQL_TYPE_CONNECTION,
                                                              G_PARAM_READWRITE |
-                                                             G_PARAM_CONSTRUCT_ONLY));
+                                                             G_PARAM_CONSTRUCT_ONLY |
+                                                             G_PARAM_STATIC_STRINGS));
 }
 
 static void
diff --git a/src/libtracker-miner/tracker-miner-online.c b/src/libtracker-miner/tracker-miner-online.c
index e77cd79f0..e2dcf5d2d 100644
--- a/src/libtracker-miner/tracker-miner-online.c
+++ b/src/libtracker-miner/tracker-miner-online.c
@@ -145,7 +145,7 @@ tracker_miner_online_class_init (TrackerMinerOnlineClass *klass)
                                                            "Network type for the current connection",
                                                            TRACKER_TYPE_NETWORK_TYPE,
                                                            TRACKER_NETWORK_TYPE_NONE,
-                                                           G_PARAM_READABLE));
+                                                           G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
 
        /**
         * TrackerMinerOnline::connected:
diff --git a/src/libtracker-miner/tracker-miner-proxy.c b/src/libtracker-miner/tracker-miner-proxy.c
index a53054292..e599ef64c 100644
--- a/src/libtracker-miner/tracker-miner-proxy.c
+++ b/src/libtracker-miner/tracker-miner-proxy.c
@@ -252,7 +252,8 @@ tracker_miner_proxy_class_init (TrackerMinerProxyClass *klass)
                                                              "Miner to manage",
                                                              TRACKER_TYPE_MINER,
                                                              G_PARAM_READWRITE |
-                                                             G_PARAM_CONSTRUCT_ONLY));
+                                                             G_PARAM_CONSTRUCT_ONLY |
+                                                             G_PARAM_STATIC_STRINGS));
        g_object_class_install_property (object_class,
                                         PROP_DBUS_CONNECTION,
                                         g_param_spec_object ("dbus-connection",
@@ -260,7 +261,8 @@ tracker_miner_proxy_class_init (TrackerMinerProxyClass *klass)
                                                              "DBus connection",
                                                              G_TYPE_DBUS_CONNECTION,
                                                              G_PARAM_READWRITE |
-                                                             G_PARAM_CONSTRUCT_ONLY));
+                                                             G_PARAM_CONSTRUCT_ONLY |
+                                                             G_PARAM_STATIC_STRINGS));
        g_object_class_install_property (object_class,
                                         PROP_DBUS_PATH,
                                         g_param_spec_string ("dbus-path",
@@ -268,7 +270,8 @@ tracker_miner_proxy_class_init (TrackerMinerProxyClass *klass)
                                                              "DBus path for this miner",
                                                              NULL,
                                                              G_PARAM_READWRITE |
-                                                             G_PARAM_CONSTRUCT_ONLY));
+                                                             G_PARAM_CONSTRUCT_ONLY |
+                                                             G_PARAM_STATIC_STRINGS));
 }
 
 static void
diff --git a/src/libtracker-miner/tracker-monitor.c b/src/libtracker-miner/tracker-monitor.c
index e4276dbb4..63112eb9d 100644
--- a/src/libtracker-miner/tracker-monitor.c
+++ b/src/libtracker-miner/tracker-monitor.c
@@ -184,7 +184,7 @@ tracker_monitor_class_init (TrackerMonitorClass *klass)
                                                               "Enabled",
                                                               "Enabled",
                                                               TRUE,
-                                                              G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
+                                                              G_PARAM_READWRITE | G_PARAM_CONSTRUCT | 
G_PARAM_STATIC_STRINGS));
 }
 
 static void
diff --git a/src/libtracker-miner/tracker-sparql-buffer.c b/src/libtracker-miner/tracker-sparql-buffer.c
index 5a5fe0ba5..469d40a14 100644
--- a/src/libtracker-miner/tracker-sparql-buffer.c
+++ b/src/libtracker-miner/tracker-sparql-buffer.c
@@ -138,7 +138,8 @@ tracker_sparql_buffer_class_init (TrackerSparqlBufferClass *klass)
                                                              "Sparql Connection",
                                                              TRACKER_SPARQL_TYPE_CONNECTION,
                                                              G_PARAM_READWRITE |
-                                                             G_PARAM_CONSTRUCT_ONLY));
+                                                             G_PARAM_CONSTRUCT_ONLY |
+                                                             G_PARAM_STATIC_STRINGS));
 }
 
 static gboolean
diff --git a/src/libtracker-miner/tracker-task-pool.c b/src/libtracker-miner/tracker-task-pool.c
index 476aab28f..8f4008c45 100644
--- a/src/libtracker-miner/tracker-task-pool.c
+++ b/src/libtracker-miner/tracker-task-pool.c
@@ -114,14 +114,14 @@ tracker_task_pool_class_init (TrackerTaskPoolClass *klass)
                                                            "Limit",
                                                            "Task limit",
                                                            1, G_MAXUINT, 1,
-                                                           G_PARAM_READWRITE));
+                                                           G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
        g_object_class_install_property (object_class,
                                         PROP_LIMIT_REACHED,
                                         g_param_spec_boolean ("limit-reached",
                                                               "Limit reached",
                                                               "Task limit reached",
                                                               FALSE,
-                                                              G_PARAM_READABLE));
+                                                              G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
 }
 
 static gboolean
diff --git a/src/miners/fs/tracker-config.c b/src/miners/fs/tracker-config.c
index 5836214bf..7aa700f68 100644
--- a/src/miners/fs/tracker-config.c
+++ b/src/miners/fs/tracker-config.c
@@ -147,7 +147,7 @@ tracker_config_class_init (TrackerConfigClass *klass)
                                                            "Log verbosity (0=errors, 1=minimal, 2=detailed, 
3=debug)",
                                                            TRACKER_TYPE_VERBOSITY,
                                                            DEFAULT_VERBOSITY,
-                                                           G_PARAM_READWRITE));
+                                                           G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
        g_object_class_install_property (object_class,
                                         PROP_SCHED_IDLE,
                                         g_param_spec_enum ("sched-idle",
@@ -155,7 +155,7 @@ tracker_config_class_init (TrackerConfigClass *klass)
                                                            "Scheduler priority when idle (0=always, 
1=first-index, 2=never)",
                                                            TRACKER_TYPE_SCHED_IDLE,
                                                            DEFAULT_SCHED_IDLE,
-                                                           G_PARAM_READWRITE));
+                                                           G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
        g_object_class_install_property (object_class,
                                         PROP_INITIAL_SLEEP,
                                         g_param_spec_int ("initial-sleep",
@@ -164,7 +164,7 @@ tracker_config_class_init (TrackerConfigClass *klass)
                                                           0,
                                                           1000,
                                                           DEFAULT_INITIAL_SLEEP,
-                                                          G_PARAM_READWRITE));
+                                                          G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
        /* Monitors */
        g_object_class_install_property (object_class,
@@ -173,7 +173,7 @@ tracker_config_class_init (TrackerConfigClass *klass)
                                                               "Enable monitors",
                                                               "Set to false to completely disable any 
monitoring",
                                                               DEFAULT_ENABLE_MONITORS,
-                                                              G_PARAM_READWRITE));
+                                                              G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
        /* Indexing */
        g_object_class_install_property (object_class,
@@ -184,21 +184,21 @@ tracker_config_class_init (TrackerConfigClass *klass)
                                                           0,
                                                           20,
                                                           DEFAULT_THROTTLE,
-                                                          G_PARAM_READWRITE));
+                                                          G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
        g_object_class_install_property (object_class,
                                         PROP_INDEX_ON_BATTERY,
                                         g_param_spec_boolean ("index-on-battery",
                                                               "Index on battery",
                                                               "Set to true to index while running on 
battery",
                                                               DEFAULT_INDEX_ON_BATTERY,
-                                                              G_PARAM_READWRITE));
+                                                              G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
        g_object_class_install_property (object_class,
                                         PROP_INDEX_ON_BATTERY_FIRST_TIME,
                                         g_param_spec_boolean ("index-on-battery-first-time",
                                                               "Index on battery first time",
                                                               "Set to true to index while running on battery 
for the first time only",
                                                               DEFAULT_INDEX_ON_BATTERY_FIRST_TIME,
-                                                              G_PARAM_READWRITE));
+                                                              G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
        g_object_class_install_property (object_class,
                                         PROP_INDEX_REMOVABLE_DEVICES,
                                         g_param_spec_boolean ("index-removable-devices",
@@ -206,7 +206,7 @@ tracker_config_class_init (TrackerConfigClass *klass)
                                                               "Set to true to enable traversing mounted 
directories for removable devices\n"
                                                               "(this includes optical discs)",
                                                               DEFAULT_INDEX_REMOVABLE_DEVICES,
-                                                              G_PARAM_READWRITE));
+                                                              G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
        g_object_class_install_property (object_class,
                                         PROP_INDEX_OPTICAL_DISCS,
                                         g_param_spec_boolean ("index-optical-discs",
@@ -214,7 +214,7 @@ tracker_config_class_init (TrackerConfigClass *klass)
                                                               "Set to true to enable traversing CDs, DVDs, 
and generally optical media\n"
                                                               "(if removable devices are not indexed, 
optical discs won't be either)",
                                                               DEFAULT_INDEX_OPTICAL_DISCS,
-                                                              G_PARAM_READWRITE));
+                                                              G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
        g_object_class_install_property (object_class,
                                         PROP_LOW_DISK_SPACE_LIMIT,
                                         g_param_spec_int ("low-disk-space-limit",
@@ -224,7 +224,7 @@ tracker_config_class_init (TrackerConfigClass *klass)
                                                           -1,
                                                           100,
                                                           DEFAULT_LOW_DISK_SPACE_LIMIT,
-                                                          G_PARAM_READWRITE));
+                                                          G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
        g_object_class_install_property (object_class,
                                         PROP_INDEX_RECURSIVE_DIRECTORIES,
                                         g_param_spec_boxed ("index-recursive-directories",
@@ -241,7 +241,7 @@ tracker_config_class_init (TrackerConfigClass *klass)
                                                             "   &VIDEOS\n"
                                                             " If $HOME is the default below, it is because 
$HOME/.config/user-dirs.default was missing.",
                                                             G_TYPE_STRV,
-                                                            G_PARAM_READWRITE));
+                                                            G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
        g_object_class_install_property (object_class,
                                         PROP_INDEX_SINGLE_DIRECTORIES,
                                         g_param_spec_boxed ("index-single-directories",
@@ -249,28 +249,28 @@ tracker_config_class_init (TrackerConfigClass *klass)
                                                             " List of directories to index but not 
sub-directories for changes (separator=;)\n"
                                                             " Special values used for 
IndexRecursiveDirectories can also be used here",
                                                             G_TYPE_STRV,
-                                                            G_PARAM_READWRITE));
+                                                            G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
        g_object_class_install_property (object_class,
                                         PROP_IGNORED_DIRECTORIES,
                                         g_param_spec_boxed ("ignored-directories",
                                                             "Ignored directories",
                                                             " List of directories to NOT crawl for indexing 
(separator=;)",
                                                             G_TYPE_STRV,
-                                                            G_PARAM_READWRITE));
+                                                            G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
        g_object_class_install_property (object_class,
                                         PROP_IGNORED_DIRECTORIES_WITH_CONTENT,
                                         g_param_spec_boxed ("ignored-directories-with-content",
                                                             "Ignored directories with content",
                                                             " List of directories to NOT crawl for indexing 
based on child files (separator=;)",
                                                             G_TYPE_STRV,
-                                                            G_PARAM_READWRITE));
+                                                            G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
        g_object_class_install_property (object_class,
                                         PROP_IGNORED_FILES,
                                         g_param_spec_boxed ("ignored-files",
                                                             "Ignored files",
                                                             " List of files to NOT index (separator=;)",
                                                             G_TYPE_STRV,
-                                                            G_PARAM_READWRITE));
+                                                            G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
        g_object_class_install_property (object_class,
                                         PROP_CRAWLING_INTERVAL,
                                         g_param_spec_int ("crawling-interval",
@@ -283,7 +283,7 @@ tracker_config_class_init (TrackerConfigClass *klass)
                                                           -2,
                                                           365,
                                                           DEFAULT_CRAWLING_INTERVAL,
-                                                          G_PARAM_READWRITE));
+                                                          G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
        g_object_class_install_property (object_class,
                                         PROP_REMOVABLE_DAYS_THRESHOLD,
                                         g_param_spec_int ("removable-days-threshold",
@@ -294,7 +294,7 @@ tracker_config_class_init (TrackerConfigClass *klass)
                                                           0,
                                                           365,
                                                           DEFAULT_REMOVABLE_DAYS_THRESHOLD,
-                                                          G_PARAM_READWRITE));
+                                                          G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
        /* Writeback */
        g_object_class_install_property (object_class,
@@ -303,7 +303,7 @@ tracker_config_class_init (TrackerConfigClass *klass)
                                                               "Enable Writeback",
                                                               "Set to false to disable writeback",
                                                               DEFAULT_ENABLE_WRITEBACK,
-                                                              G_PARAM_READWRITE));
+                                                              G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 }
 
 static void
diff --git a/src/miners/fs/tracker-miner-files-index.c b/src/miners/fs/tracker-miner-files-index.c
index 20e864d8b..4fb80f2e5 100644
--- a/src/miners/fs/tracker-miner-files-index.c
+++ b/src/miners/fs/tracker-miner-files-index.c
@@ -102,7 +102,7 @@ tracker_miner_files_index_class_init (TrackerMinerFilesIndexClass *klass)
                                                              "files_miner",
                                                              "The FS Miner",
                                                              TRACKER_TYPE_MINER_FILES,
-                                                             G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
+                                                             G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | 
G_PARAM_STATIC_STRINGS));
 }
 
 static void
diff --git a/src/miners/fs/tracker-miner-files-peer-listener.c 
b/src/miners/fs/tracker-miner-files-peer-listener.c
index 7a1467789..5301e1527 100644
--- a/src/miners/fs/tracker-miner-files-peer-listener.c
+++ b/src/miners/fs/tracker-miner-files-peer-listener.c
@@ -240,7 +240,7 @@ tracker_miner_files_peer_listener_class_init (TrackerMinerFilesPeerListenerClass
                                                              "Connection",
                                                              "Connection",
                                                              G_TYPE_DBUS_CONNECTION,
-                                                             G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
+                                                             G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | 
G_PARAM_STATIC_STRINGS));
 
        signals[WATCH_FILE] =
                g_signal_new ("watch-file",
diff --git a/src/miners/fs/tracker-miner-files.c b/src/miners/fs/tracker-miner-files.c
index c0a6a5967..630f28b0b 100644
--- a/src/miners/fs/tracker-miner-files.c
+++ b/src/miners/fs/tracker-miner-files.c
@@ -384,7 +384,7 @@ tracker_miner_files_class_init (TrackerMinerFilesClass *klass)
                                                              "Config",
                                                              "Config",
                                                              TRACKER_TYPE_CONFIG,
-                                                             G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
+                                                             G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | 
G_PARAM_STATIC_STRINGS));
 
        miner_files_error_quark = g_quark_from_static_string ("TrackerMinerFiles");
 }
diff --git a/src/miners/fs/tracker-power-hal.c b/src/miners/fs/tracker-power-hal.c
index 1abd06e62..43f96e6b7 100644
--- a/src/miners/fs/tracker-power-hal.c
+++ b/src/miners/fs/tracker-power-hal.c
@@ -99,14 +99,14 @@ tracker_power_class_init (TrackerPowerClass *klass)
                                                               "Battery in use",
                                                               "Whether the battery is being used",
                                                               FALSE,
-                                                              G_PARAM_READABLE));
+                                                              G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
        g_object_class_install_property (object_class,
                                         PROP_ON_LOW_BATTERY,
                                         g_param_spec_boolean ("on-low-battery",
                                                               "Battery low",
                                                               "Whether the battery is low",
                                                               FALSE,
-                                                              G_PARAM_READABLE));
+                                                              G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
 }
 
 static void
diff --git a/src/miners/fs/tracker-power-upower.c b/src/miners/fs/tracker-power-upower.c
index cad4ca29c..2d9cedc8a 100644
--- a/src/miners/fs/tracker-power-upower.c
+++ b/src/miners/fs/tracker-power-upower.c
@@ -74,7 +74,7 @@ tracker_power_class_init (TrackerPowerClass *klass)
                                                               "Battery in use",
                                                               "Whether the battery is being used",
                                                               FALSE,
-                                                              G_PARAM_READABLE));
+                                                              G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
 
        g_object_class_install_property (object_class,
                                         PROP_ON_LOW_BATTERY,
@@ -82,7 +82,7 @@ tracker_power_class_init (TrackerPowerClass *klass)
                                                               "Battery low",
                                                               "Whether the battery is low",
                                                               FALSE,
-                                                              G_PARAM_READABLE));
+                                                              G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
 }
 
 #ifndef HAVE_UP_CLIENT_GET_ON_LOW_BATTERY
diff --git a/src/miners/fs/tracker-writeback-dispatcher.c b/src/miners/fs/tracker-writeback-dispatcher.c
index fe0d7cf1c..685b0c9b1 100644
--- a/src/miners/fs/tracker-writeback-dispatcher.c
+++ b/src/miners/fs/tracker-writeback-dispatcher.c
@@ -103,7 +103,7 @@ tracker_writeback_dispatcher_class_init (TrackerWritebackDispatcherClass *klass)
                                                              "files_miner",
                                                              "The FS Miner",
                                                              TRACKER_TYPE_MINER_FILES,
-                                                             G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
+                                                             G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | 
G_PARAM_STATIC_STRINGS));
 }
 
 static void
diff --git a/src/miners/fs/tracker-writeback-listener.c b/src/miners/fs/tracker-writeback-listener.c
index 98a3a516d..9948aa1d4 100644
--- a/src/miners/fs/tracker-writeback-listener.c
+++ b/src/miners/fs/tracker-writeback-listener.c
@@ -105,7 +105,7 @@ tracker_writeback_listener_class_init (TrackerWritebackListenerClass *klass)
                                                              "files_miner",
                                                              "The FS Miner",
                                                              TRACKER_TYPE_MINER_FILES,
-                                                             G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
+                                                             G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | 
G_PARAM_STATIC_STRINGS));
 }
 
 static void
diff --git a/src/tracker-extract/tracker-extract-decorator.c b/src/tracker-extract/tracker-extract-decorator.c
index cbb4901ec..c9a18fae9 100644
--- a/src/tracker-extract/tracker-extract-decorator.c
+++ b/src/tracker-extract/tracker-extract-decorator.c
@@ -557,7 +557,8 @@ tracker_extract_decorator_class_init (TrackerExtractDecoratorClass *klass)
                                                              "Extractor",
                                                              TRACKER_TYPE_EXTRACT,
                                                              G_PARAM_READWRITE |
-                                                             G_PARAM_CONSTRUCT_ONLY));
+                                                             G_PARAM_CONSTRUCT_ONLY |
+                                                             G_PARAM_STATIC_STRINGS));
 }
 
 static void
diff --git a/src/tracker-writeback/tracker-config.c b/src/tracker-writeback/tracker-config.c
index fe1673936..f9f8a34a4 100644
--- a/src/tracker-writeback/tracker-config.c
+++ b/src/tracker-writeback/tracker-config.c
@@ -71,7 +71,8 @@ tracker_config_class_init (TrackerConfigClass *klass)
                                                            "Log verbosity (0=errors, 1=minimal, 2=detailed, 
3=debug)",
                                                            TRACKER_TYPE_VERBOSITY,
                                                            TRACKER_VERBOSITY_ERRORS,
-                                                           G_PARAM_READWRITE));
+                                                           G_PARAM_READWRITE |
+                                                           G_PARAM_STATIC_STRINGS));
 }
 
 static void
diff --git a/src/tracker-writeback/tracker-writeback.c b/src/tracker-writeback/tracker-writeback.c
index 91dd1ee06..24e44365f 100644
--- a/src/tracker-writeback/tracker-writeback.c
+++ b/src/tracker-writeback/tracker-writeback.c
@@ -202,7 +202,9 @@ tracker_controller_class_init (TrackerControllerClass *klass)
                                                            "Shutdown timeout",
                                                            "Shutdown timeout, 0 to disable",
                                                            0, 1000, 0,
-                                                           G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
+                                                           G_PARAM_READWRITE |
+                                                           G_PARAM_CONSTRUCT_ONLY |
+                                                           G_PARAM_STATIC_STRINGS));
 }
 
 static void



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