aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaouda Lo <daouda@mandriva.com>2003-07-28 15:38:41 +0000
committerDaouda Lo <daouda@mandriva.com>2003-07-28 15:38:41 +0000
commitf79511b649fe55d2a1fa1fb57196c09a38c3e0d2 (patch)
tree2a229753ea9253173bd0be177af4eb29d419564c
parentac363c6a313efc8177b53063b2520e33870f8182 (diff)
downloaduserdrake-f79511b649fe55d2a1fa1fb57196c09a38c3e0d2.tar
userdrake-f79511b649fe55d2a1fa1fb57196c09a38c3e0d2.tar.gz
userdrake-f79511b649fe55d2a1fa1fb57196c09a38c3e0d2.tar.bz2
userdrake-f79511b649fe55d2a1fa1fb57196c09a38c3e0d2.tar.xz
userdrake-f79511b649fe55d2a1fa1fb57196c09a38c3e0d2.zip
- cosmetics changes
-rwxr-xr-xuserdrake7
1 files changed, 4 insertions, 3 deletions
diff --git a/userdrake b/userdrake
index 6d9011c..cea22c8 100755
--- a/userdrake
+++ b/userdrake
@@ -229,7 +229,7 @@ sub AddUser {
0, BuildUui(),
0, Gtk2::HSeparator->new,
0, $us->{o}->{createhomedir} = Gtk2::CheckButton->new(N("Create Home Directory")),
- 0, gtkpack_(Gtk2::HBox->new(0, 4),
+ 0, gtkpack_(my $vv = Gtk2::HBox->new(0, 4),
0, Gtk2::Label->new(N("Home Directory: ")),
0, $us->{o}->{homedir} = Gtk2::Entry->new()
),
@@ -304,6 +304,7 @@ sub AddUser {
)
);
map { $us->{o}->{$_}->set_active(1) } (qw(privategroup createhomedir));
+ GrayBox( $us->{o}->{createhomedir}, $vv, 1);
$us->{o}->{login}->signal_connect('focus_out_event' => sub {
my $fullname = $us->{o}->{fullname}->get_text();
$us->{o}->{homedir}->set_text("/home/".$us->{o}->{login}->get_text());
@@ -463,8 +464,8 @@ sub Delete {
my $groupEnt = $ctx->LookupGroupById($usergid);
my $member = $groupEnt->MemberName(1, 0);
if ($groupEnt && (scalar(@$member) == 0)) { $groupEnt->Gid($GetValue) > 499 and $ctx->GroupDel($groupEnt) };
- $checkhome->get_active() and $ctx->Clean($userEnt);
- $checkspool->get_active() and $ctx->Clean($userEnt);
+ $checkhome->get_active() and $ctx->CleanHome($userEnt);
+ $checkspool->get_active() and $ctx->CleanSpool($userEnt);
Refresh($sysfilter, $stringsearch)
}
!$error and Gtk2->main_quit; $error = 0; })