diff options
author | Mystery Man <unknown@mandriva.org> | 2003-02-28 19:12:50 +0000 |
---|---|---|
committer | Mystery Man <unknown@mandriva.org> | 2003-02-28 19:12:50 +0000 |
commit | 3cbfd41e073fbd2fbe6f548eefe650e21fec6250 (patch) | |
tree | cacec1f310fcee1e588e313dd109866b9ec12e0c /mdk-stage1/newt/buttonbar.c | |
parent | a63d6674452fb78472f75a3c129f77254572f8af (diff) | |
download | drakx-backup-do-not-use-3cbfd41e073fbd2fbe6f548eefe650e21fec6250.tar drakx-backup-do-not-use-3cbfd41e073fbd2fbe6f548eefe650e21fec6250.tar.gz drakx-backup-do-not-use-3cbfd41e073fbd2fbe6f548eefe650e21fec6250.tar.bz2 drakx-backup-do-not-use-3cbfd41e073fbd2fbe6f548eefe650e21fec6250.tar.xz drakx-backup-do-not-use-3cbfd41e073fbd2fbe6f548eefe650e21fec6250.zip |
This commit was manufactured by cvs2svn to create tag 'V9_1_11mdk'.V9_1_11mdk
Diffstat (limited to 'mdk-stage1/newt/buttonbar.c')
-rw-r--r-- | mdk-stage1/newt/buttonbar.c | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/mdk-stage1/newt/buttonbar.c b/mdk-stage1/newt/buttonbar.c deleted file mode 100644 index 45473c9d2..000000000 --- a/mdk-stage1/newt/buttonbar.c +++ /dev/null @@ -1,46 +0,0 @@ -#include <stdarg.h> - -#include "newt.h" - -/* if they try and pack more then 50 buttons, screw 'em */ -newtGrid newtButtonBarv(char * button1, newtComponent * b1comp, va_list args) { - newtGrid grid; - struct buttonInfo { - char * name; - newtComponent * compPtr; - } buttons[50]; - int num; - int i; - - buttons[0].name = button1, buttons[0].compPtr = b1comp, num = 1; - while (1) { - buttons[num].name = va_arg(args, char *); - if (!buttons[num].name) break; - buttons[num].compPtr = va_arg(args, newtComponent *); - num++; - } - - grid = newtCreateGrid(num, 1); - - for (i = 0; i < num; i++) { - *buttons[i].compPtr = newtButton(-1, -1, buttons[i].name); - newtGridSetField(grid, i, 0, NEWT_GRID_COMPONENT, - *buttons[i].compPtr, - num ? 1 : 0, 0, 0, 0, 0, 0); - } - - return grid; -} - -newtGrid newtButtonBar(char * button1, newtComponent * b1comp, ...) { - va_list args; - newtGrid grid; - - va_start(args, b1comp); - - grid = newtButtonBarv(button1, b1comp, args); - - va_end(args); - - return grid; -} |