From 19f98c1f974b10c04967acdd4d2fed0021b0657d Mon Sep 17 00:00:00 2001 From: Andrea Zagli Date: Tue, 7 Jun 2011 17:56:00 +0200 Subject: [PATCH] Added proprocessor variable CANNOT_CHANGE_PASSWORD that disable the ability to change user password. --- src/aute_smbldap.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/aute_smbldap.c b/src/aute_smbldap.c index b97b009..bfcfb69 100644 --- a/src/aute_smbldap.c +++ b/src/aute_smbldap.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2010 Andrea Zagli + * Copyright (C) 2010-2011 Andrea Zagli * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -928,6 +928,11 @@ gchar gtk_entry_set_text (GTK_ENTRY (txt_utente), g_get_user_name ()); gtk_editable_select_region (GTK_EDITABLE (txt_utente), 0, -1); +#ifdef CANNOT_CHANGE_PASSWORD + gtk_widget_set_no_show_all (exp_cambio, TRUE); + gtk_widget_set_visible (exp_cambio, FALSE); +#endif + switch (gtk_dialog_run (GTK_DIALOG (diag))) { case GTK_RESPONSE_OK: -- 2.49.0