aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2003-07-10 12:59:36 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2003-07-10 12:59:36 +0000
commitcd0ab4da77f036254d58247e64cb0ad43f5d78ba (patch)
tree9ef7438fae5652d064a1ef7c285f97d256926896
parent66527985fbd1b3a0ada865b7f885131f00c455f7 (diff)
downloaduserdrake-cd0ab4da77f036254d58247e64cb0ad43f5d78ba.tar
userdrake-cd0ab4da77f036254d58247e64cb0ad43f5d78ba.tar.gz
userdrake-cd0ab4da77f036254d58247e64cb0ad43f5d78ba.tar.bz2
userdrake-cd0ab4da77f036254d58247e64cb0ad43f5d78ba.tar.xz
userdrake-cd0ab4da77f036254d58247e64cb0ad43f5d78ba.zip
fix tree filling
-rwxr-xr-xuserdrake8
1 files changed, 4 insertions, 4 deletions
diff --git a/userdrake b/userdrake
index a4b1374..19c02af 100755
--- a/userdrake
+++ b/userdrake
@@ -716,8 +716,8 @@ sub Edit {
if (InArray($name, $members)) {
$uEnt = $ctx->LookupUserByName($name);
if ($uEnt->Gid($GetValue) == $groupEnt->Gid($GetValue)) {
- $model->set($iter, [0 => gtkcreate_pixbuf($pix[0])]);
- $model->set($iter, [2 => 1]);
+ $model->set($iter, 0 => gtkcreate_pixbuf($pix[0]));
+ $model->set($iter, 2 => 1);
RaiseError(N("You cannot remove user '%s' from their primary group", $name));
}
if (!$error) {
@@ -767,8 +767,8 @@ sub Edit {
return unless $iter;
my $cp = $model->get($iter, 2);
my $item = $model->get($iter, 1);
- $model->set($iter, [0 => gtkcreate_pixbuf($pix[$cp])]);
- $model->set($iter, [2 => !$cp]);
+ $model->set($iter, 0 => gtkcreate_pixbuf($pix[$cp]));
+ $model->set($iter, 2 => !$cp);
if ($p <= 0) {
if (!$cp) {
!InArray($item, \@primgroup) and push(@primgroup, $item)