[sushi] file-loader: return a proper string if the folder is empty



commit 8fb18a041069c0b1e71eae44c6ab16969deaa2c9
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Wed Apr 27 17:49:05 2011 -0400

    file-loader: return a proper string if the folder is empty

 src/libsushi/sushi-file-loader.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/libsushi/sushi-file-loader.c b/src/libsushi/sushi-file-loader.c
index ce28c10..f734c05 100644
--- a/src/libsushi/sushi-file-loader.c
+++ b/src/libsushi/sushi-file-loader.c
@@ -2,6 +2,8 @@
 
 #include <gtk/gtk.h>
 
+#include <glib/gi18n.h>
+
 #define LOADER_ATTRS                          \
   G_FILE_ATTRIBUTE_STANDARD_ICON ","          \
   G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME ","  \
@@ -586,6 +588,8 @@ sushi_file_loader_get_size_string (SushiFileLoader *self)
     g_free (str);
 
     return retval;
+  } else if (!self->priv->loading) {
+    return g_strdup (_("Empty Folder"));
   }
 
   return NULL;



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