[empathy] Improve connected/disconnected notifications (#639352)
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] Improve connected/disconnected notifications (#639352)
- Date: Fri, 14 Jan 2011 14:30:57 +0000 (UTC)
commit 59a145f0076fd39b5ff624e936dbe3d4dbc49d5b
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Fri Jan 14 09:53:04 2011 +0100
Improve connected/disconnected notifications (#639352)
src/empathy-event-manager.c | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
---
diff --git a/src/empathy-event-manager.c b/src/empathy-event-manager.c
index 93656c3..c7dd660 100644
--- a/src/empathy-event-manager.c
+++ b/src/empathy-event-manager.c
@@ -1115,11 +1115,12 @@ event_manager_presence_changed_cb (EmpathyContact *contact,
if (g_settings_get_boolean (priv->gsettings_notif,
EMPATHY_PREFS_NOTIFICATIONS_CONTACT_SIGNOUT))
{
- header = g_strdup_printf (_("%s is now offline."),
+ header = g_strdup_printf ("<b>%s</b>",
empathy_contact_get_alias (contact));
- event_manager_add (manager, NULL, contact, EMPATHY_EVENT_TYPE_PRESENCE,
- EMPATHY_IMAGE_AVATAR_DEFAULT, header, NULL, NULL, NULL, NULL);
+ event_manager_add (manager, NULL, contact,
+ EMPATHY_EVENT_TYPE_PRESENCE, EMPATHY_IMAGE_AVATAR_DEFAULT,
+ header, _("Disconnected"), NULL, NULL, NULL);
}
}
}
@@ -1136,11 +1137,12 @@ event_manager_presence_changed_cb (EmpathyContact *contact,
if (g_settings_get_boolean (priv->gsettings_notif,
EMPATHY_PREFS_NOTIFICATIONS_CONTACT_SIGNIN))
{
- header = g_strdup_printf (_("%s is now online."),
+ header = g_strdup_printf ("<b>%s</b>",
empathy_contact_get_alias (contact));
- event_manager_add (manager, NULL, contact, EMPATHY_EVENT_TYPE_PRESENCE,
- EMPATHY_IMAGE_AVATAR_DEFAULT, header, NULL, NULL, NULL, NULL);
+ event_manager_add (manager, NULL, contact,
+ EMPATHY_EVENT_TYPE_PRESENCE, EMPATHY_IMAGE_AVATAR_DEFAULT,
+ header, _("Connected"), NULL, NULL, NULL);
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]