diff options
author | Mystery Man <unknown@mandriva.org> | 2003-03-14 17:57:15 +0000 |
---|---|---|
committer | Mystery Man <unknown@mandriva.org> | 2003-03-14 17:57:15 +0000 |
commit | 65a06c77cbff9bc84b7be08103b1a483cda9d9d2 (patch) | |
tree | 6e38e70826700508de0018ad460ea43fcdef4bee /mdk-stage1/newt/buttonbar.c | |
parent | 9a988dcb14af8d6af00781d73904ad82a0c9b422 (diff) | |
download | drakx-65a06c77cbff9bc84b7be08103b1a483cda9d9d2.tar drakx-65a06c77cbff9bc84b7be08103b1a483cda9d9d2.tar.gz drakx-65a06c77cbff9bc84b7be08103b1a483cda9d9d2.tar.bz2 drakx-65a06c77cbff9bc84b7be08103b1a483cda9d9d2.tar.xz drakx-65a06c77cbff9bc84b7be08103b1a483cda9d9d2.zip |
This commit was manufactured by cvs2svn to create tag 'V9_1_24mdk'.V9_1_24mdk
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; -} |