mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-17 14:44:07 +00:00
button
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@28 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user