aboutsummaryrefslogtreecommitdiff
path: root/src/engine-eds.cpp
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2015-03-24 14:28:23 -0500
committerCharles Kerr <charles.kerr@canonical.com>2015-03-24 14:28:23 -0500
commitd5002c6b27cf0e00828555a10e89778008d6cd01 (patch)
tree014f004ffd37eec9fc1b980fb536030950b59647 /src/engine-eds.cpp
parentb115811bcafc3ce5193dc75cb7929a8f3f2cba00 (diff)
downloadayatana-indicator-datetime-d5002c6b27cf0e00828555a10e89778008d6cd01.tar.gz
ayatana-indicator-datetime-d5002c6b27cf0e00828555a10e89778008d6cd01.tar.bz2
ayatana-indicator-datetime-d5002c6b27cf0e00828555a10e89778008d6cd01.zip
make the string test case-insensitive
Diffstat (limited to 'src/engine-eds.cpp')
-rw-r--r--src/engine-eds.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/engine-eds.cpp b/src/engine-eds.cpp
index 8408a57..a47ab4a 100644
--- a/src/engine-eds.cpp
+++ b/src/engine-eds.cpp
@@ -33,10 +33,10 @@ namespace unity {
namespace indicator {
namespace datetime {
-static constexpr char const * TAG_ALARM {"x-canonical-alarm"};
-static constexpr char const * TAG_DISABLED {"x-canonical-disabled"};
+static constexpr char const * TAG_ALARM {"x-canonical-alarm"};
+static constexpr char const * TAG_DISABLED {"x-canonical-disabled"};
-static constexpr char const * X_PROP_APP_URL {"x-canonical-app-url"};
+static constexpr char const * X_PROP_ACTIVATION_URL {"X-CANONICAL-ACTIVATION-URL"};
/****
*****
@@ -478,7 +478,7 @@ private:
while (icalprop)
{
const char * x_name = icalproperty_get_x_name(icalprop);
- if (!g_strcmp0(x_name, X_PROP_APP_URL))
+ if ((x_name != nullptr) && !g_ascii_strcasecmp(x_name, X_PROP_ACTIVATION_URL))
{
const char * url = icalproperty_get_value_as_string(icalprop);
if ((url != nullptr) && appointment.url.empty())