[seahorse] gkr: Display item labels even if they don't match formatters



commit b2e0fd58ea6ca3699930f05a68b217c1d8cf322f
Author: Stef Walter <stefw gnome org>
Date:   Mon Nov 12 08:22:44 2012 +0100

    gkr: Display item labels even if they don't match formatters

 gkr/seahorse-gkr-item.c |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/gkr/seahorse-gkr-item.c b/gkr/seahorse-gkr-item.c
index a1185c1..d6f1594 100644
--- a/gkr/seahorse-gkr-item.c
+++ b/gkr/seahorse-gkr-item.c
@@ -469,18 +469,19 @@ ensure_display_info (SeahorseGkrItem *self)
 				(DISPLAY_ENTRIES[i].custom_func) (&DISPLAY_ENTRIES[i],
 				                                  label, attrs,
 				                                  info);
-			if (!info->label) {
-				info->label = label;
-				label = NULL;
-			}
 			if (!info->description)
 				info->description = DISPLAY_ENTRIES[i].description;
-			if (!info->details)
-				info->details = g_strdup ("");
 			break;
 		}
 	}
 
+	if (!info->label) {
+		info->label = label;
+		label = NULL;
+	}
+	if (!info->details)
+		info->details = g_strdup ("");
+
 	self->pv->display_info = info;
 	g_hash_table_unref (attrs);
 	g_free (label);



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