E-Exec.c: Cosmetics
This commit is contained in:
parent
b57411ca2b
commit
b79b167d28
|
@ -1,11 +1,7 @@
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "epplet.h"
|
#include "epplet.h"
|
||||||
|
|
||||||
#define EPPLET_NAME "E-Exec"
|
#define MAX_HIST_LEN 50
|
||||||
#define EPPLET_VERSION "0.5"
|
|
||||||
#define EPPLET_INFO "Exec a command given by the user"
|
|
||||||
|
|
||||||
#define MAX_HIST_LEN 50
|
|
||||||
|
|
||||||
#define TRUE 1
|
#define TRUE 1
|
||||||
#define FALSE 0
|
#define FALSE 0
|
||||||
|
@ -233,27 +229,19 @@ cb_configure(void *data __UNUSED__)
|
||||||
int
|
int
|
||||||
main(int argc, char *argv[])
|
main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
int w;
|
||||||
|
|
||||||
|
w = 5;
|
||||||
if ((argc > 1) && (!strcmp("--proper-size", argv[1])))
|
if ((argc > 1) && (!strcmp("--proper-size", argv[1])))
|
||||||
{
|
w = 6;
|
||||||
Epplet_Init(EPPLET_NAME, EPPLET_VERSION, EPPLET_INFO, 6, 3, argc, argv,
|
|
||||||
0);
|
|
||||||
|
|
||||||
Epplet_gadget_show(Epplet_create_label(-10, 2, "E-Exec", 2));
|
Epplet_Init("E-Exec", "0.5", "Exec a command given by the user",
|
||||||
|
w, 3, argc, argv, 0);
|
||||||
|
|
||||||
textbox =
|
Epplet_gadget_show(Epplet_create_label(-10, 2, "E-Exec", 2));
|
||||||
Epplet_create_textbox(NULL, NULL, 2, 32, 92, 14, 2, run_contents,
|
|
||||||
NULL);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
Epplet_Init(EPPLET_NAME, EPPLET_VERSION, EPPLET_INFO, 5, 3, argc, argv,
|
|
||||||
0);
|
|
||||||
Epplet_gadget_show(Epplet_create_label(-10, 2, "E-Exec", 2));
|
|
||||||
|
|
||||||
textbox =
|
textbox = Epplet_create_textbox(NULL, NULL, 2, 32, w * 16 - 4, 14,
|
||||||
Epplet_create_textbox(NULL, NULL, 2, 32, 76, 14, 2, run_contents,
|
2, run_contents, NULL);
|
||||||
NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
Epplet_load_config();
|
Epplet_load_config();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue