diff --git a/src/nautilus-view.c b/src/nautilus-view.c
index 481d039..3b9e9e4 100644
--- a/src/nautilus-view.c
+++ b/src/nautilus-view.c
@@ -4803,32 +4803,55 @@ add_extension_menu_items (NautilusView *view,
 		NautilusMenuItem *item;
 		NautilusMenu *menu;
 		GtkAction *action;
-		char *path;
+		char *path, *label;
 		
 		item = NAUTILUS_MENU_ITEM (l->data);
 		
-		g_object_get (item, "menu", &menu, NULL);
-		
+		g_object_get (item,
+	      "menu", &menu,
+	      "label", &label,
+	      NULL);
+
 		action = add_extension_action_for_files (view, item, files);
 		
 		path = g_build_path ("/", NAUTILUS_VIEW_POPUP_PATH_EXTENSION_ACTIONS, subdirectory, NULL);
-		gtk_ui_manager_add_ui (ui_manager,
-				       view->details->extensions_menu_merge_id,
-				       path,
-				       gtk_action_get_name (action),
-				       gtk_action_get_name (action),
-				       (menu != NULL) ? GTK_UI_MANAGER_MENU : GTK_UI_MANAGER_MENUITEM,
-				       FALSE);
+		if ((label)&&(strcmp(label, "-") == 0)) {
+			gtk_ui_manager_add_ui (ui_manager,
+					       view->details->extensions_menu_merge_id,
+					       path,
+					       gtk_action_get_name (action),
+					       gtk_action_get_name (action),
+					       GTK_UI_MANAGER_SEPARATOR,
+					       FALSE);
+		} else {
+			gtk_ui_manager_add_ui (ui_manager,
+					       view->details->extensions_menu_merge_id,
+					       path,
+					       gtk_action_get_name (action),
+					       gtk_action_get_name (action),
+					       (menu != NULL) ? GTK_UI_MANAGER_MENU : GTK_UI_MANAGER_MENUITEM,
+					       FALSE);
+		}
 		g_free (path);
 
 		path = g_build_path ("/", NAUTILUS_VIEW_MENU_PATH_EXTENSION_ACTIONS_PLACEHOLDER, subdirectory, NULL);
-		gtk_ui_manager_add_ui (ui_manager,
-				       view->details->extensions_menu_merge_id,
-				       path,
-				       gtk_action_get_name (action),
-				       gtk_action_get_name (action),
-				       (menu != NULL) ? GTK_UI_MANAGER_MENU : GTK_UI_MANAGER_MENUITEM,
-				       FALSE);
+		if ((label)&&(strcmp(label, "-") == 0)) {
+			gtk_ui_manager_add_ui (ui_manager,
+					       view->details->extensions_menu_merge_id,
+					       path,
+					       gtk_action_get_name (action),
+					       gtk_action_get_name (action),
+					       GTK_UI_MANAGER_SEPARATOR,
+					       FALSE);
+		} else {
+			gtk_ui_manager_add_ui (ui_manager,
+					       view->details->extensions_menu_merge_id,
+					       path,
+					       gtk_action_get_name (action),
+					       gtk_action_get_name (action),
+					       (menu != NULL) ? GTK_UI_MANAGER_MENU : GTK_UI_MANAGER_MENUITEM,
+					       FALSE);
+		}
 		g_free (path);
 
 		/* recursively fill the menu */		       
