Example #1
0
void
uih_destroytext (uih_context * c)
{
  if (c->text[0] != NULL)
    free (c->text[0]), c->text[0] = NULL;
  if (c->text[1] != NULL)
    free (c->text[1]), c->text[1] = NULL;
  if (c->text[2] != NULL)
    free (c->text[2]), c->text[2] = NULL;
  uih_removew (c, c->textwindow[0]);
  uih_removew (c, c->textwindow[1]);
  uih_removew (c, c->textwindow[2]);
}
Example #2
0
void
uih_destroymessages (uih_context * c)
{
  int i;
  uih_clearmessages (c);
  for (i = 0; i < NMESSAGES; i++)
    uih_removew (c, c->messg.w[i]);
}
Example #3
0
void ui_closefilesel(int success)
{
    char *text =
	(char *) malloc((int) strlen(filename->text) +
			(int) strlen(currdir) + 3);
    filevisible = 0;
    uih_removew(uih, filew);
    ui_freenames();
    sprintf(text, "%s" XIO_PATHSEPSTR "%s", currdir, filename->text);
    ui_closetext(dir);
    ui_closetext(filename);
    strcpy(lastdir, currdir);
    free(currdir);
    callback(text, success);
    free(text);
    uih->display = 1;
    ui_freenames();
}