uh...uhuhuhuuhuh...this is gonna be cool...
SVN revision: 1250
This commit is contained in:
parent
126d6c30c5
commit
f7bb9a97d5
13
api/epplet.c
13
api/epplet.c
|
@ -1453,6 +1453,19 @@ Epplet_textbox_contents(Epplet_gadget eg)
|
|||
return g->contents;
|
||||
}
|
||||
|
||||
void
|
||||
Epplet_reset_textbox(Epplet_gadget eg)
|
||||
{
|
||||
GadTextBox *g;
|
||||
g = (GadTextBox *) eg;
|
||||
|
||||
if(g->contents)
|
||||
{
|
||||
free(g->contents);
|
||||
g->contents = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
Epplet_draw_textbox(Epplet_gadget eg)
|
||||
{
|
||||
|
|
|
@ -228,6 +228,9 @@ Epplet_gadget Epplet_create_textbox(char *image, char *contents, int x,
|
|||
/* Retreive the current contents of the textbox */
|
||||
char *Epplet_textbox_contents(Epplet_gadget g);
|
||||
|
||||
/* Reset the textbox */
|
||||
void Epplet_reset_textbox(Epplet_gadget eg);
|
||||
|
||||
/* create drawing area at (x,y) of size (w x h) */
|
||||
Epplet_gadget Epplet_create_drawingarea(int x, int y, int w, int h);
|
||||
/* create horizontal slider at x, y of length len. the minimum length is 9 */
|
||||
|
|
|
@ -20,6 +20,7 @@ cb_close(void *data)
|
|||
static void
|
||||
run_contents(void *data)
|
||||
{
|
||||
Epplet_reset_textbox(textbox);
|
||||
Epplet_spawn_command(Epplet_textbox_contents(textbox));
|
||||
return;
|
||||
data = NULL;
|
||||
|
|
Loading…
Reference in New Issue