git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@761 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-11-20 09:26:18 +00:00
parent e55d0ce70e
commit d96c6fef5e
12 changed files with 84 additions and 43 deletions

View File

@@ -106,7 +106,7 @@ static void llfocusouthandler(MwLL handle, void* data) {
MwWidget MwCreateWidget(MwClass widget_class, const char* name, MwWidget parent, int x, int y, unsigned int width, unsigned int height) {
MwWidget h = malloc(sizeof(*h));
h->name = MwStringDupliacte(name);
h->name = MwStringDuplicate(name);
h->parent = parent;
h->children = NULL;
@@ -361,7 +361,7 @@ void MwSetText(MwWidget handle, const char* key, const char* value) {
if(strcmp(key, MwNtitle) == 0) {
MwLLSetTitle(handle->lowlevel, value);
} else {
char* v = MwStringDupliacte(value);
char* v = MwStringDuplicate(value);
if(shgeti(handle->text, key) != -1) free(shget(handle->text, key));