[PATCH]Get rid off the duplicated localizated context menu items (new).



Hi,
In locales other than C, context menu items from bonobo server, which
with localized strings, will be duplicated. Here is a patch to fix it.

Regards
James Su


--- nautilus-2.2.1/src/file-manager/fm-directory-view.c.old	2003-02-18 17:27:03.000000000 +0800
+++ nautilus-2.2.1/src/file-manager/fm-directory-view.c	2003-02-18 18:04:21.000000000 +0800
@@ -3742,7 +3742,8 @@
 		/* look for properties that start with "nautilusverb:".  The
 		 * part following the colon is the verb name
 		 */
-		if (strstr (info->props._buffer[i].name, "nautilusverb:")) {
+		if (strstr (info->props._buffer[i].name, "nautilusverb:") &&
+		    strchr (info->props._buffer[i].name, '-') == NULL) {
 			l = g_list_prepend (l,
 			      g_strdup (&info->props._buffer[i].name[offset]));	
 		}


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