Index: gconf-editor-application.c
===================================================================
--- gconf-editor-application.c	(révision 1433)
+++ gconf-editor-application.c	(copie de travail)
@@ -55,23 +55,13 @@ gconf_editor_application_create_editor_w
 	gconf_tree_model_set_client (GCONF_TREE_MODEL (gconfwindow->tree_model), gconfwindow->client);
 	gconf_list_model_set_client (GCONF_LIST_MODEL (gconfwindow->list_model), gconfwindow->client);
 
-	if (!gconf_util_can_edit_defaults ()) {
-		gtk_widget_set_sensitive (gtk_ui_manager_get_widget (gconfwindow->ui_manager, "/GConfKeyPopupMenu/DefaultKey"),
-					  FALSE);
+	if (!gconf_util_can_edit_defaults ())
 		gtk_action_set_sensitive (gtk_ui_manager_get_action (gconfwindow->ui_manager, "/GConfEditorMenu/FileMenu/NewDefaultsWindow"),
 					  FALSE);
-	} else if (gconfwindow->type == GCONF_EDITOR_WINDOW_TYPE_DEFAULTS)
-		gtk_widget_set_sensitive (gtk_ui_manager_get_widget (gconfwindow->ui_manager, "/GConfKeyPopupMenu/DefaultKey"),
-					  FALSE);
 
-	if (!gconf_util_can_edit_mandatory ()) {
-		gtk_widget_set_sensitive (gtk_ui_manager_get_widget (gconfwindow->ui_manager, "/GConfKeyPopupMenu/MandatoryKey"),
-					  FALSE);
+	if (!gconf_util_can_edit_mandatory ())
 		gtk_action_set_sensitive (gtk_ui_manager_get_action (gconfwindow->ui_manager, "/GConfEditorMenu/FileMenu/NewMandatoryWindow"),
 					  FALSE);
-	} else if (gconfwindow->type == GCONF_EDITOR_WINDOW_TYPE_MANDATORY)
-		gtk_widget_set_sensitive (gtk_ui_manager_get_widget (gconfwindow->ui_manager, "/GConfKeyPopupMenu/MandatoryKey"),
-					  FALSE);
 	
 	g_signal_connect (window, "destroy",
 			  G_CALLBACK (gconf_editor_application_window_destroyed), NULL);
Index: gconf-editor-window.c
===================================================================
--- gconf-editor-window.c	(révision 1433)
+++ gconf-editor-window.c	(copie de travail)
@@ -895,11 +895,13 @@ list_view_button_press_event (GtkTreeVie
 			gtk_widget_set_sensitive (gtk_ui_manager_get_widget (window->ui_manager, "/GConfKeyPopupMenu/EditKey"), 
 						  TRUE);
 			gtk_widget_set_sensitive (gtk_ui_manager_get_widget (window->ui_manager, "/GConfKeyPopupMenu/UnsetKey"), 
-						  TRUE);
+						  window->type != GCONF_EDITOR_WINDOW_TYPE_DEFAULTS);
 			gtk_widget_set_sensitive (gtk_ui_manager_get_widget (window->ui_manager, "/GConfKeyPopupMenu/DefaultKey"), 
-						  TRUE);
+						  gconf_util_can_edit_defaults () &&
+						  window->type != GCONF_EDITOR_WINDOW_TYPE_DEFAULTS);
 			gtk_widget_set_sensitive (gtk_ui_manager_get_widget (window->ui_manager, "/GConfKeyPopupMenu/MandatoryKey"), 
-						  TRUE);
+						  gconf_util_can_edit_mandatory () &&
+						  window->type != GCONF_EDITOR_WINDOW_TYPE_MANDATORY);
 			
 			gtk_tree_path_free (path);
 		}
@@ -996,11 +998,13 @@ gconf_editor_window_list_view_popup_menu
 		gtk_widget_set_sensitive (gtk_ui_manager_get_widget (window->ui_manager, "/GConfKeyPopupMenu/EditKey"), 
 					  TRUE);
 		gtk_widget_set_sensitive (gtk_ui_manager_get_widget (window->ui_manager, "/GConfKeyPopupMenu/UnsetKey"), 
-					  TRUE);
+					  window->type != GCONF_EDITOR_WINDOW_TYPE_DEFAULTS);
 		gtk_widget_set_sensitive (gtk_ui_manager_get_widget (window->ui_manager, "/GConfKeyPopupMenu/DefaultKey"), 
-					  TRUE);
+					  gconf_util_can_edit_defaults () &&
+					  window->type != GCONF_EDITOR_WINDOW_TYPE_DEFAULTS);
 		gtk_widget_set_sensitive (gtk_ui_manager_get_widget (window->ui_manager, "/GConfKeyPopupMenu/MandatoryKey"), 
-					  TRUE);
+					  gconf_util_can_edit_mandatory () &&
+					  window->type != GCONF_EDITOR_WINDOW_TYPE_MANDATORY);
 			
 	}
 	else {
