git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@28 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-09-28 14:36:24 +00:00
parent 7aa8438595
commit c9c8bf5163
5 changed files with 78 additions and 1 deletions

View File

@@ -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);
}
}