[PATCH 2/4] Fix hiding "encrypt home folder" option when not supported



Conditionally showing is not enough, we also need to hide the checkbox if encrypted home is not supported.
---
 src/users/user-settings.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/users/user-settings.c b/src/users/user-settings.c
index 9c8a5f8..e3863de 100644
--- a/src/users/user-settings.c
+++ b/src/users/user-settings.c
@@ -930,6 +930,8 @@ on_user_new (GtkButton *button, gpointer user_data)
 	/* Show the encrypt home check box if supported */
 	if (oobs_users_config_get_encrypted_home_support (users_config))
 	    gtk_widget_show (encrypted_home);
+	else
+	    gtk_widget_hide (encrypted_home);
 
 	gtk_window_set_focus (GTK_WINDOW (user_new_dialog), user_name);
 
-- 
1.6.3.3


--=-WTqUhcpzJGUML/4aDgUX
Content-Disposition: attachment; filename="0001-Fix-wrong-list-passed-to-oobs_list_iter_next.patch"
Content-Type: text/x-patch; name="0001-Fix-wrong-list-passed-to-oobs_list_iter_next.patch"; charset="UTF-8"
Content-Transfer-Encoding: 7bit



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