[tracker/libtracker-miner] TrackerConfigFile: get rid of "lt-" prefixes in app names.
- From: Carlos Garnacho <carlosg src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker/libtracker-miner] TrackerConfigFile: get rid of "lt-" prefixes in app names.
- Date: Wed, 26 Aug 2009 11:49:08 +0000 (UTC)
commit 512af87a5654b5b4681dce4b788650507be95b83
Author: Carlos Garnacho <carlos lanedo com>
Date: Wed Aug 26 11:51:04 2009 +0200
TrackerConfigFile: get rid of "lt-" prefixes in app names.
src/libtracker-common/tracker-config-file.c | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-common/tracker-config-file.c b/src/libtracker-common/tracker-config-file.c
index dba7749..dd22aee 100644
--- a/src/libtracker-common/tracker-config-file.c
+++ b/src/libtracker-common/tracker-config-file.c
@@ -108,13 +108,21 @@ config_set_property (GObject *object,
GParamSpec *pspec)
{
TrackerConfigFilePrivate *priv;
+ gchar *domain;
priv = TRACKER_CONFIG_FILE_GET_PRIVATE (object);
switch (param_id) {
case PROP_DOMAIN:
g_free (priv->domain);
- priv->domain = g_strdup (g_value_get_string (value));
+ domain = g_value_get_string (value);
+
+ /* Get rid of the "lt-" prefix if any */
+ if (g_str_has_prefix (domain, "lt-")) {
+ domain += 3;
+ }
+
+ priv->domain = g_strdup (domain);
g_object_notify (object, "domain");
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]