Skip to content

Commit

Permalink
Make txt_inputboxes emit a "changed" signal when their value is changed.
Browse files Browse the repository at this point in the history
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1520
  • Loading branch information
fragglet committed May 12, 2009
1 parent cc93c79 commit 21d67cd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions textscreen/txt_inputbox.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ static int TXT_InputBoxKeyPress(TXT_UNCAST_ARG(inputbox), int key)
free(*((char **)inputbox->value));
*((char **) inputbox->value) = strdup(inputbox->buffer);

TXT_EmitSignal(&inputbox->widget, "changed");

inputbox->editing = 0;
}

Expand Down

0 comments on commit 21d67cd

Please sign in to comment.