aboutsummaryrefslogtreecommitdiff
path: root/src/indicator-application.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-03-29 12:41:18 -0500
committerTed Gould <ted@gould.cx>2010-03-29 12:41:18 -0500
commit9fddbf6ce595b5c113b2e22187f5ae8eb563761a (patch)
treea0ced2fe72de47c4799eb8ddb2e2929b62628a07 /src/indicator-application.c
parent9919c5e4bcbbcb1ea533b45e5e1aa12e03dae41a (diff)
parent1d034522d1f19b089f3d326d18551b4a978323ba (diff)
downloadayatana-indicator-application-9fddbf6ce595b5c113b2e22187f5ae8eb563761a.tar.gz
ayatana-indicator-application-9fddbf6ce595b5c113b2e22187f5ae8eb563761a.tar.bz2
ayatana-indicator-application-9fddbf6ce595b5c113b2e22187f5ae8eb563761a.zip
Tracking the icon name and included the panel suffix for fallback usage.
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);