uh...uhuhuhuuhuh...this is gonna be cool...

SVN revision: 1250
This commit is contained in:
Richard Barnes 1999-11-11 03:02:47 +00:00
parent 126d6c30c5
commit f7bb9a97d5
3 changed files with 17 additions and 0 deletions

View File

@ -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)
{

View File

@ -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 */

View File

@ -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;