[gnome-system-tools] Hide custom user profile when not selected
- From: Milan Bouchet-Valat <milanbv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-system-tools] Hide custom user profile when not selected
- Date: Thu, 16 Dec 2010 13:07:04 +0000 (UTC)
commit 929822cacecb2cad23d9b60169f383ad8bd5f84d
Author: Milan Bouchet-Valat <nalimilan club fr>
Date: Thu Dec 16 14:05:40 2010 +0100
Hide custom user profile when not selected
Disabling it has the advantage of keeping the dialog stable, but
having a greyed out choice at the beginning of the list isn't nice.
src/users/user-settings.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/users/user-settings.c b/src/users/user-settings.c
index f1bf272..7347748 100644
--- a/src/users/user-settings.c
+++ b/src/users/user-settings.c
@@ -1284,14 +1284,14 @@ on_edit_user_profile (GtkButton *button, gpointer user_data)
if (profile) {
radio = g_hash_table_lookup (radios, profile->name);
- gtk_widget_set_sensitive (custom_radio, FALSE);
+ gtk_widget_hide (custom_radio);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (radio), TRUE);
- gtk_widget_set_sensitive (custom_label, FALSE);
+ gtk_widget_hide (custom_label);
}
else {
- gtk_widget_set_sensitive (custom_radio, TRUE);
+ gtk_widget_show (custom_radio);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (custom_radio), TRUE);
- gtk_widget_set_sensitive (custom_label, FALSE);
+ gtk_widget_show (custom_label);
}
response = run_edit_dialog (GTK_DIALOG (user_profile_dialog),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]