[gthumb/ext: 74/79] add a . sign if the metadata is not available



commit 87e1a99ab75da4986668476919df58f4f45e78d1
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Thu Jul 30 00:47:09 2009 +0200

    add a . sign if the metadata is not available

 gthumb/gth-file-list.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/gthumb/gth-file-list.c b/gthumb/gth-file-list.c
index 94e53b7..33fc42e 100644
--- a/gthumb/gth-file-list.c
+++ b/gthumb/gth-file-list.c
@@ -699,13 +699,13 @@ _gth_file_list_get_metadata (GthFileList *file_list,
 		char *value;
 
 		value = gth_file_data_get_attribute_as_string (file_data, file_list->priv->caption_attributes_v[i]);
-		if (value != NULL) {
-			if (metadata->len > 0)
-				g_string_append (metadata, "\n");
-			g_string_append (metadata, value);
+		if (value == NULL)
+			value = g_strdup ("-");
+		if (metadata->len > 0)
+			g_string_append (metadata, "\n");
+		g_string_append (metadata, value);
 
-			g_free (value);
-		}
+		g_free (value);
 	}
 
 	return metadata;



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