aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-01-14 16:53:04 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-01-14 22:28:28 +0800
commit59a145f0076fd39b5ff624e936dbe3d4dbc49d5b (patch)
tree1920f7decabf6f7cbfe0f8460e39194bb5a42ebe /src
parent8f96f1f11ae5f8407127d5438e75c67426ec6368 (diff)
downloadgsoc2013-empathy-59a145f0076fd39b5ff624e936dbe3d4dbc49d5b.tar
gsoc2013-empathy-59a145f0076fd39b5ff624e936dbe3d4dbc49d5b.tar.gz
gsoc2013-empathy-59a145f0076fd39b5ff624e936dbe3d4dbc49d5b.tar.bz2
gsoc2013-empathy-59a145f0076fd39b5ff624e936dbe3d4dbc49d5b.tar.lz
gsoc2013-empathy-59a145f0076fd39b5ff624e936dbe3d4dbc49d5b.tar.xz
gsoc2013-empathy-59a145f0076fd39b5ff624e936dbe3d4dbc49d5b.tar.zst
gsoc2013-empathy-59a145f0076fd39b5ff624e936dbe3d4dbc49d5b.zip
Improve connected/disconnected notifications (#639352)
Diffstat (limited to 'src')
-rw-r--r--src/empathy-event-manager.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/empathy-event-manager.c b/src/empathy-event-manager.c
index 93656c3a9..c7dd660a0 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);
}
}
}