empathy r2433 - trunk/src



Author: xclaesse
Date: Tue Feb 10 20:52:40 2009
New Revision: 2433
URL: http://svn.gnome.org/viewvc/empathy?rev=2433&view=rev

Log:
status_icon_update_tooltip: don't display the event message if NULL. Fixes bug #571184 (Guillaume Desmottes)

From: Guillaume Desmottes <gdesmott gnome org>

Modified:
   trunk/src/empathy-status-icon.c

Modified: trunk/src/empathy-status-icon.c
==============================================================================
--- trunk/src/empathy-status-icon.c	(original)
+++ trunk/src/empathy-status-icon.c	Tue Feb 10 20:52:40 2009
@@ -170,9 +170,12 @@
 	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) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]