aboutsummaryrefslogtreecommitdiff
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
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
-rwxr-xr-xautogen.sh2
-rw-r--r--src/app-menu-item.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/autogen.sh b/autogen.sh
index f0cc344..1abf3a7 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,6 +1,6 @@
#!/bin/sh
-PKG_NAME="indicator-applet"
+PKG_NAME="indicator-messages"
which gnome-autogen.sh || {
echo "You need gnome-common from GNOME SVN"
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;
}