diff options
author | Sebastien Bacher <seb128@ubuntu.com> | 2010-04-01 23:41:58 +0200 |
---|---|---|
committer | Sebastien Bacher <seb128@ubuntu.com> | 2010-04-01 23:41:58 +0200 |
commit | 40b74a14850bacbef753ed1e697de51f68a7ee62 (patch) | |
tree | 0bd17cc965406feb51b5f463a351526408cc9950 /src/indicator-application.c | |
parent | fd1ec3c4cf17a488d072c63660bc818562cd9448 (diff) | |
parent | 734b874a2c463115e69d40fa48db8ebbc5996289 (diff) | |
download | libayatana-appindicator-40b74a14850bacbef753ed1e697de51f68a7ee62.tar.gz libayatana-appindicator-40b74a14850bacbef753ed1e697de51f68a7ee62.tar.bz2 libayatana-appindicator-40b74a14850bacbef753ed1e697de51f68a7ee62.zip |
releasing version 0.0.19-0ubuntu10.0.19-0ubuntu1
Diffstat (limited to 'src/indicator-application.c')
-rw-r--r-- | src/indicator-application.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/indicator-application.c b/src/indicator-application.c index b681a24..16c3a9f 100644 --- a/src/indicator-application.c +++ b/src/indicator-application.c @@ -447,7 +447,12 @@ application_added (DBusGProxy * proxy, const gchar * iconname, gint position, co /* We make a long name using the suffix, and if that icon is available we want to use it. Otherwise we'll just use the name we were given. */ - gchar * longname = g_strdup_printf("%s-%s", iconname, PANEL_ICON_SUFFIX); + gchar * longname = NULL; + if (!g_str_has_suffix(iconname, PANEL_ICON_SUFFIX)) { + longname = g_strdup_printf("%s-%s", iconname, PANEL_ICON_SUFFIX); + } else { + longname = g_strdup(iconname); + } app->entry.image = indicator_image_helper(longname); g_free(longname); |