Just spiffed it up slightly...i think...
SVN revision: 1251
This commit is contained in:
parent
f7bb9a97d5
commit
ac6dcea856
|
@ -20,8 +20,9 @@ cb_close(void *data)
|
|||
static void
|
||||
run_contents(void *data)
|
||||
{
|
||||
char *command = Epplet_textbox_contents(textbox);
|
||||
Epplet_spawn_command(command);
|
||||
Epplet_reset_textbox(textbox);
|
||||
Epplet_spawn_command(Epplet_textbox_contents(textbox));
|
||||
return;
|
||||
data = NULL;
|
||||
}
|
||||
|
@ -38,6 +39,9 @@ main(int argc, char *argv[])
|
|||
button = Epplet_create_button(NULL, NULL, 2, 2,
|
||||
12, 12, "CLOSE", 0, NULL, cb_close, NULL);
|
||||
|
||||
Epplet_gadget_show(Epplet_create_button("E-Exec", NULL, 16, 2,
|
||||
62, 12, NULL, 0, NULL, run_contents, NULL));
|
||||
|
||||
textbox =
|
||||
Epplet_create_textbox(NULL, NULL, 2, 15, 76, 16, 1, run_contents, NULL);
|
||||
|
||||
|
|
Loading…
Reference in New Issue