[gnome-system-tools] Fix hiding "encrypt home folder" option when not supported
- From: Milan Bouchet-Valat <milanbv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-system-tools] Fix hiding "encrypt home folder" option when not supported
- Date: Wed, 24 Mar 2010 13:40:46 +0000 (UTC)
commit 6e7aed8fde9190d2151b8904cbc80de629567abf
Author: Milan Bouchet-Valat <nalimilan club fr>
Date: Tue Mar 23 12:08:54 2010 +0100
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]