aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-status-icon.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-12-23 23:45:33 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-12-24 17:44:55 +0800
commit3e44a8a3c4268a401f4a2869ee4b8a806d23c51a (patch)
treea4f7f2b5176f1f4125b5dee71050e1aff2b90282 /src/empathy-status-icon.c
parent61aac31cb18ef645661c89c49f01bd9caca0124e (diff)
downloadgsoc2013-empathy-3e44a8a3c4268a401f4a2869ee4b8a806d23c51a.tar
gsoc2013-empathy-3e44a8a3c4268a401f4a2869ee4b8a806d23c51a.tar.gz
gsoc2013-empathy-3e44a8a3c4268a401f4a2869ee4b8a806d23c51a.tar.bz2
gsoc2013-empathy-3e44a8a3c4268a401f4a2869ee4b8a806d23c51a.tar.lz
gsoc2013-empathy-3e44a8a3c4268a401f4a2869ee4b8a806d23c51a.tar.xz
gsoc2013-empathy-3e44a8a3c4268a401f4a2869ee4b8a806d23c51a.tar.zst
gsoc2013-empathy-3e44a8a3c4268a401f4a2869ee4b8a806d23c51a.zip
status_icon_update_tooltip: display a translated version of the default status string
Diffstat (limited to 'src/empathy-status-icon.c')
-rw-r--r--src/empathy-status-icon.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/empathy-status-icon.c b/src/empathy-status-icon.c
index b137daf72..b7555598d 100644
--- a/src/empathy-status-icon.c
+++ b/src/empathy-status-icon.c
@@ -209,9 +209,10 @@ static void
status_icon_update_tooltip (EmpathyStatusIcon *icon)
{
EmpathyStatusIconPriv *priv = GET_PRIV (icon);
- gchar *tooltip = NULL;
if (priv->event) {
+ gchar *tooltip = NULL;
+
if (priv->event->message != NULL)
tooltip = g_markup_printf_escaped ("<i>%s</i>\n%s",
priv->event->header,
@@ -220,13 +221,16 @@ status_icon_update_tooltip (EmpathyStatusIcon *icon)
tooltip = g_markup_printf_escaped ("<i>%s</i>",
priv->event->header);
gtk_status_icon_set_tooltip_markup (priv->icon, tooltip);
+ g_free (tooltip);
} else {
- tp_account_manager_get_most_available_presence (
- priv->account_manager, &tooltip, NULL);
- gtk_status_icon_set_tooltip_text (priv->icon, tooltip);
- }
+ TpConnectionPresenceType type;
- g_free (tooltip);
+ type = tp_account_manager_get_most_available_presence (
+ priv->account_manager, NULL, NULL);
+
+ gtk_status_icon_set_tooltip_text (priv->icon,
+ empathy_presence_get_default_message (type));
+ }
}
static void