gnome-main-menu r463 - trunk/libslab



Author: federico
Date: Tue May 13 22:52:53 2008
New Revision: 463
URL: http://svn.gnome.org/viewvc/gnome-main-menu?rev=463&view=rev

Log:
Robustify comparison in the last commit
2008-05-13  Federico Mena Quintero  <federico novell com>

	* application-tile.c (application_tile_setup): Ensure that name
	and desc are non-NULL before comparing them.

Signed-off-by: Federico Mena Quintero <federico gnu org>


Modified:
   trunk/libslab/ChangeLog
   trunk/libslab/application-tile.c

Modified: trunk/libslab/application-tile.c
==============================================================================
--- trunk/libslab/application-tile.c	(original)
+++ trunk/libslab/application-tile.c	Tue May 13 22:52:53 2008
@@ -330,7 +330,10 @@
 	  atk_object_set_description (accessible, desc);
 
 	header    = create_header    (name);
-	if (desc && priv->show_generic_name && strcmp(name, desc) != 0)  /*if no GenericName then just show and center the Name */
+
+	/*if no GenericName then just show and center the Name */
+	if (desc && priv->show_generic_name
+	    && (!name || strcmp(name, desc) != 0))
 		subheader = create_subheader (desc);
 	else
 		subheader = NULL;



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