diff options
author | Daouda Lo <daouda@mandriva.com> | 2003-06-12 16:08:14 +0000 |
---|---|---|
committer | Daouda Lo <daouda@mandriva.com> | 2003-06-12 16:08:14 +0000 |
commit | 11627a538cc353270b5d91577a57917f7a946d80 (patch) | |
tree | dca840e5a7a9e7d23dea2ff433b6c3d8bc06aad6 /userdrake2 | |
parent | 37ba8f42aaf45b1f6462077da895233456fedd34 (diff) | |
download | userdrake-11627a538cc353270b5d91577a57917f7a946d80.tar userdrake-11627a538cc353270b5d91577a57917f7a946d80.tar.gz userdrake-11627a538cc353270b5d91577a57917f7a946d80.tar.bz2 userdrake-11627a538cc353270b5d91577a57917f7a946d80.tar.xz userdrake-11627a538cc353270b5d91577a57917f7a946d80.zip |
- clean up
Diffstat (limited to 'userdrake2')
-rwxr-xr-x | userdrake2 | 12 |
1 files changed, 3 insertions, 9 deletions
@@ -535,8 +535,7 @@ sub Edit { $g{groupname} = $us->{o}->{groupname}->get_text(); $error = 0; if (!valid($g{groupname})) { raiseerror($us->{error}); $error = 1 }; if (!$error && $groupname ne $g{groupname}) {$ctx->GroupName($g{groupname})} - - my $members = $ctx->EnumerateUsersByGroup($g->groupname); + #my $members = $ctx->EnumerateUsersByGroup($g->groupname); my $ch; my $name; $model->foreach(sub { my ($mod, $path, $iter) = @_; @@ -564,13 +563,8 @@ sub Edit { $iter = $model->get_iter($path); if ($iter) { my $cp = $model->get($iter, 2); - if ($cp == 0) { - $model->set($iter, [0 => gtkcreate_pixbuf($pix[0])]); - $model->set($iter, [2 => 1]); - } elsif ($cp == 1) { - $model->set($iter, [0 => gtkcreate_pixbuf($pix[1])]); - $model->set($iter, [2 => 0]); - } + $model->set($iter, [0 => gtkcreate_pixbuf($pix[$cp])]); + $model->set($iter, [2 => !$cp]); $iter->free; } } |