gnome-main-menu r462 - trunk/libslab



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

Log:
bnc224885 - Don't display duplicated description in app tiles
2008-05-09  Magnus Boman  <captain magnus gmail com>

        https://bugzilla.novell.com/show_bug.cgi?id=224885 -
        Don't display both generic name and description if they are the same.

        * libslab/application-tile.c (application_tile_setup): Set subheader
        to NULL if description is the same as generic name.

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:44:48 2008
@@ -330,7 +330,7 @@
 	  atk_object_set_description (accessible, desc);
 
 	header    = create_header    (name);
-	if (desc && priv->show_generic_name)  /*if no GenericName then just show and center the Name */
+	if (desc && priv->show_generic_name && strcmp(name, desc) != 0)  /*if no GenericName then just show and center the Name */
 		subheader = create_subheader (desc);
 	else
 		subheader = NULL;



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