[nautilus-actions] NAObjectItem: do not let an item with an empty label go to the UI



commit 7f03aad925a0851793faae2936e8c631ed86d2ab
Author: Pierre Wieser <pwieser trychlos org>
Date:   Tue Nov 29 21:40:33 2011 +0100

    NAObjectItem: do not let an item with an empty label go to the UI

 ChangeLog                         |    3 +++
 src/core/na-object-item-factory.c |    2 +-
 2 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index a1e0b35..d6257a0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2011-11-29 Pierre Wieser <pwieser trychlos org>
 
+	* src/core/na-object-item-factory.c:
+	Do not let a read or imported item go until the UI with an empty label.
+
 	* src/io-xml/naxml-reader.c (schema_parse_schema_content):
 	Only search for identifier in <applyto> schema key.
 
diff --git a/src/core/na-object-item-factory.c b/src/core/na-object-item-factory.c
index 323eb9c..0601334 100644
--- a/src/core/na-object-item-factory.c
+++ b/src/core/na-object-item-factory.c
@@ -89,7 +89,7 @@ NADataDef data_def_item [] = {
 					"menu when the selection matches the appearance condition settings.\n" \
 					"It is also used as a default for the toolbar label of an action." ),
 				NA_DATA_TYPE_LOCALE_STRING,
-				"",
+				N_( "Empty label" ),
 				FALSE,
 				TRUE,
 				TRUE,



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