[gnome-color-manager/colord: 67/72] Display the profile ID in the UI if the profile title or profile filename is not available



commit d2db1a0b044e80bb7062dc17e12a008787f2641c
Author: Richard Hughes <richard hughsie com>
Date:   Thu Feb 24 13:30:25 2011 +0000

    Display the profile ID in the UI if the profile title or profile filename is not available

 src/gcm-cell-renderer-profile-text.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/gcm-cell-renderer-profile-text.c b/src/gcm-cell-renderer-profile-text.c
index d8dfb1f..5ace15d 100644
--- a/src/gcm-cell-renderer-profile-text.c
+++ b/src/gcm-cell-renderer-profile-text.c
@@ -70,8 +70,10 @@ gcm_cell_renderer_set_markup (GcmCellRendererProfileText *renderer)
 	} else {
 		/* add profile description */
 		description = cd_profile_get_title (renderer->profile);
-		if (description == NULL)
+		if (description == NULL || description[0] == '\0')
 			description = cd_profile_get_filename (renderer->profile);
+		if (description == NULL || description[0] == '\0')
+			description = cd_profile_get_id (renderer->profile);
 		string = g_string_new (description);
 
 		/* TRANSLATORS: this is the default profile */



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