[nautilus] Don't show captions that make no sense
- From: William Jon McCann <mccann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] Don't show captions that make no sense
- Date: Wed, 22 Aug 2012 12:58:58 +0000 (UTC)
commit b8ded5f5594b5b7e436bb31e15ebc24af52163b1
Author: William Jon McCann <jmccann redhat com>
Date: Tue Aug 21 12:58:01 2012 -0400
Don't show captions that make no sense
https://bugzilla.gnome.org/show_bug.cgi?id=564766
src/nautilus-canvas-view-container.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/src/nautilus-canvas-view-container.c b/src/nautilus-canvas-view-container.c
index 2d93584..9498c89 100644
--- a/src/nautilus-canvas-view-container.c
+++ b/src/nautilus-canvas-view-container.c
@@ -368,12 +368,15 @@ nautilus_canvas_view_container_get_icon_text (NautilusCanvasContainer *container
/* Get the attributes. */
j = 0;
for (i = 0; i < num_attributes; ++i) {
+ char *text;
if (attributes[i] == attribute_none_q) {
continue;
}
-
- text_array[j++] =
- nautilus_file_get_string_attribute_with_default_q (file, attributes[i]);
+ text = nautilus_file_get_string_attribute_q (file, attributes[i]);
+ if (text == NULL) {
+ continue;
+ }
+ text_array[j++] = text;
}
text_array[j] = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]