add dialog ok call for epplets :)

SVN revision: 825
This commit is contained in:
Carsten Haitzler 1999-10-13 22:31:43 +00:00
parent a8451a6ef0
commit f11a42a32c
2 changed files with 12 additions and 0 deletions

View File

@ -3557,3 +3557,14 @@ Epplet_show_about(char *name)
sprintf(s, "%s/dox %s/epplet_icons/%s.ABOUT", EBIN, EROOT, name); sprintf(s, "%s/dox %s/epplet_icons/%s.ABOUT", EBIN, EROOT, name);
Epplet_spawn_command(s); Epplet_spawn_command(s);
} }
void
Epplet_dialog_ok(char *text)
{
char *s;
s = malloc(strlen(text) + 32);
sprintf(s, "dialog_ok %s", text);
ECommsSend(s);
free(s);
}

View File

@ -312,6 +312,7 @@ void Epplet_change_button_label(Epplet_gadget gadget, char *label);
void Epplet_change_button_image(Epplet_gadget gadget, char *image); void Epplet_change_button_image(Epplet_gadget gadget, char *image);
void Epplet_clear_window(Window ww); void Epplet_clear_window(Window ww);
void Epplet_show_about(char *name); void Epplet_show_about(char *name);
void Epplet_dialog_ok(char *text);
/****************************************************************************/ /****************************************************************************/
/* Convenience macros to make using the above calls easier */ /* Convenience macros to make using the above calls easier */