[empathy/gnome-2-34] Improve connected/disconnected notifications (#639352)



commit adf13d5860f11caa6956d8d4453b6728d9dd486c
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 92d327e..b7883ad 100644
--- a/src/empathy-event-manager.c
+++ b/src/empathy-event-manager.c
@@ -1101,11 +1101,12 @@ event_manager_presence_changed_cb (EmpathyContact *contact,
           if (g_settings_get_boolean (gsettings,
                 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);
             }
         }
     }
@@ -1121,11 +1122,12 @@ event_manager_presence_changed_cb (EmpathyContact *contact,
           if (g_settings_get_boolean (gsettings,
                 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]