aboutsummaryrefslogtreecommitdiff
path: root/src/indicator-application.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-04-01 15:49:35 -0500
committerTed Gould <ted@gould.cx>2010-04-01 15:49:35 -0500
commitd005a22755a0dd3b9f752d66a0479272a09663ae (patch)
tree0ce05e5618d07642d7f44301e6d55985a1ffdc3e /src/indicator-application.c
parent9919c5e4bcbbcb1ea533b45e5e1aa12e03dae41a (diff)
parent1fbc5af0037617432ad4cb1e6a668b91ec1105e4 (diff)
downloadayatana-indicator-application-d005a22755a0dd3b9f752d66a0479272a09663ae.tar.gz
ayatana-indicator-application-d005a22755a0dd3b9f752d66a0479272a09663ae.tar.bz2
ayatana-indicator-application-d005a22755a0dd3b9f752d66a0479272a09663ae.zip
Import upstream version 0.0.19
Diffstat (limited to 'src/indicator-application.c')
-rw-r--r--src/indicator-application.c7
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);