diff options
author | Lars Uebernickel <lars.uebernickel@canonical.com> | 2012-12-05 10:37:16 +0000 |
---|---|---|
committer | Lars Uebernickel <lars.uebernickel@canonical.com> | 2012-12-05 10:37:16 +0000 |
commit | 0a1d7c1844dc6104eefe43b38400f3d94868428b (patch) | |
tree | 1f93874ff32fc86d18377e5a9b3b9ac5bf64d9e2 /src | |
parent | dc6a7b66a751d507a3e45de84c0b002cfb446a8b (diff) | |
download | ayatana-indicator-messages-0a1d7c1844dc6104eefe43b38400f3d94868428b.tar.gz ayatana-indicator-messages-0a1d7c1844dc6104eefe43b38400f3d94868428b.tar.bz2 ayatana-indicator-messages-0a1d7c1844dc6104eefe43b38400f3d94868428b.zip |
Don't shorten the app id to seven characters
Diffstat (limited to 'src')
-rw-r--r-- | src/im-application-list.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/im-application-list.c b/src/im-application-list.c index 607b0fc..5a7f768 100644 --- a/src/im-application-list.c +++ b/src/im-application-list.c @@ -411,8 +411,13 @@ im_application_list_canonical_id (const gchar *id) { gchar *str; gchar *p; + int len; - str = g_strndup (id, strlen (id) - g_str_has_suffix (id, ".desktop") ? 7 : 0); + len = strlen (id); + if (g_str_has_suffix (id, ".desktop")) + len -= 8; + + str = g_strndup (id, len); for (p = str; *p; p++) { |