button
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@28 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
parent
7aa8438595
commit
c9c8bf5163
5 changed files with 78 additions and 1 deletions
|
|
@ -77,6 +77,8 @@ void MilskoDestroyWidget(MilskoWidget handle) {
|
|||
}
|
||||
|
||||
void MilskoStep(MilskoWidget handle) {
|
||||
int i;
|
||||
for(i = 0; i < arrlen(handle->children); i++) MilskoStep(handle->children[i]);
|
||||
MilskoLLNextEvent(handle->lowlevel);
|
||||
}
|
||||
|
||||
|
|
@ -121,6 +123,8 @@ void MilskoSetText(MilskoWidget handle, const char* key, const char* value) {
|
|||
char* v = malloc(strlen(value) + 1);
|
||||
strcpy(v, value);
|
||||
|
||||
if(shgeti(handle->text, key) != -1) free(shget(handle->text, key));
|
||||
|
||||
shput(handle->text, key, v);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue