diff options
author | Jordan K. Hubbard <jkh@FreeBSD.org> | 1996-06-12 14:02:13 +0000 |
---|---|---|
committer | Jordan K. Hubbard <jkh@FreeBSD.org> | 1996-06-12 14:02:13 +0000 |
commit | 061e2fb9a6836b8ba759eb125f049a7e6eb4b1d9 (patch) | |
tree | 3f3d08c3292608539123b69e56b62cbf8ccb7d03 /usr.sbin/sade/dmenu.c | |
parent | 7c8d89b09b153d5e0945f745d2ad42aeb330dcdf (diff) | |
download | src-test2-061e2fb9a6836b8ba759eb125f049a7e6eb4b1d9.tar.gz src-test2-061e2fb9a6836b8ba759eb125f049a7e6eb4b1d9.zip |
Notes
Diffstat (limited to 'usr.sbin/sade/dmenu.c')
-rw-r--r-- | usr.sbin/sade/dmenu.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/usr.sbin/sade/dmenu.c b/usr.sbin/sade/dmenu.c index 7dbbd15e5dc6..ee2b2e57adec 100644 --- a/usr.sbin/sade/dmenu.c +++ b/usr.sbin/sade/dmenu.c @@ -4,7 +4,7 @@ * This is probably the last attempt in the `sysinstall' line, the next * generation being slated for what's essentially a complete rewrite. * - * $Id: dmenu.c,v 1.18 1996/04/25 17:31:17 jkh Exp $ + * $Id: dmenu.c,v 1.19 1996/04/28 00:37:31 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -93,6 +93,16 @@ dmenuSetVariable(dialogMenuItem *tmp) } int +dmenuToggleVariable(dialogMenuItem *tmp) +{ + if (!variable_get((char *)tmp->data)) + variable_set((char *)tmp->data); + else + variable_unset((char *)tmp->data); + return DITEM_SUCCESS; +} + +int dmenuSetFlag(dialogMenuItem *tmp) { if (*((unsigned int *)tmp->data) & tmp->aux) |