aboutsummaryrefslogtreecommitdiff
path: root/src/app-menu-item.c
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-04-08 22:38:05 -0500
committerTed Gould <ted@canonical.com>2009-04-08 22:38:05 -0500
commita4225624390433acfcfbd6695dd5ea92c0412087 (patch)
treedd7b3cc20dd0ae5937c27b0f592f40ebe2c1cf51 /src/app-menu-item.c
parentec712ab0b4362db5a72eea82de02e3a8f55489c6 (diff)
parent2cab42047a094b70833bb88b3898703499099710 (diff)
downloadayatana-indicator-messages-a4225624390433acfcfbd6695dd5ea92c0412087.tar.gz
ayatana-indicator-messages-a4225624390433acfcfbd6695dd5ea92c0412087.tar.bz2
ayatana-indicator-messages-a4225624390433acfcfbd6695dd5ea92c0412087.zip
Including some cleanups from James Westby. Thanks
Diffstat (limited to 'src/app-menu-item.c')
-rw-r--r--src/app-menu-item.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/app-menu-item.c b/src/app-menu-item.c
index f6afa02..4af0c7f 100644
--- a/src/app-menu-item.c
+++ b/src/app-menu-item.c
@@ -200,11 +200,11 @@ update_label (AppMenuItem * self)
if (priv->count_on_label && !priv->unreadcount < 1) {
/* TRANSLATORS: This is the name of the program and the number of indicators. So it
would read something like "Mail Client (5)" */
- gchar * label = g_strdup_printf(_("%s (%d)"), g_app_info_get_name(priv->appinfo), priv->unreadcount);
+ gchar * label = g_strdup_printf(_("%s (%d)"), app_menu_item_get_name(self), priv->unreadcount);
gtk_label_set_text(GTK_LABEL(priv->name), label);
g_free(label);
} else {
- gtk_label_set_text(GTK_LABEL(priv->name), g_app_info_get_name(priv->appinfo));
+ gtk_label_set_text(GTK_LABEL(priv->name), app_menu_item_get_name(self));
}
return;
@@ -228,7 +228,7 @@ desktop_cb (IndicateListener * listener, IndicateListenerServer * server, gchar
g_return_if_fail(priv->appinfo != NULL);
update_label(self);
- g_signal_emit(G_OBJECT(self), signals[NAME_CHANGED], 0, g_app_info_get_name(priv->appinfo), TRUE);
+ g_signal_emit(G_OBJECT(self), signals[NAME_CHANGED], 0, app_menu_item_get_name(self), TRUE);
return;
}