diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2015-03-24 14:28:23 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2015-03-24 14:28:23 -0500 |
commit | d5002c6b27cf0e00828555a10e89778008d6cd01 (patch) | |
tree | 014f004ffd37eec9fc1b980fb536030950b59647 /src | |
parent | b115811bcafc3ce5193dc75cb7929a8f3f2cba00 (diff) | |
download | ayatana-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')
-rw-r--r-- | src/engine-eds.cpp | 8 |
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()) |