]> git.0d.be Git - empathy.git/commitdiff
status_icon_update_tooltip: don't display the event message if NULL. Fixes bug #57118...
authorGuillaume Desmottes <gdesmott@gnome.org>
Tue, 10 Feb 2009 20:52:40 +0000 (20:52 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Tue, 10 Feb 2009 20:52:40 +0000 (20:52 +0000)
From: Guillaume Desmottes <gdesmott@gnome.org>

svn path=/trunk/; revision=2433

src/empathy-status-icon.c

index 97eab7c29c2d858b8ee8f2aafb25eca746878067..492c37a85960ad0f1c05ddb9c648480490a0b5d6 100644 (file)
@@ -170,9 +170,12 @@ status_icon_update_tooltip (EmpathyStatusIcon *icon)
        gchar                 *tooltip = NULL;
 
        if (priv->event) {
-               tooltip = g_strdup_printf ("%s\n%s",
-                                          priv->event->header,
-                                          priv->event->message);
+               if (priv->event->message != NULL)
+                               tooltip = g_strdup_printf ("%s\n%s",
+                                                          priv->event->header,
+                                                          priv->event->message);
+               else
+                               tooltip = g_strdup (priv->event->header);
        }
 
        if (!tooltip) {