listbox rewrite done
Some checks failed
pyrite-dev/milsko/pipeline/head There was a failure building this commit

This commit is contained in:
Nishi 2026-04-18 19:40:28 +09:00
commit 55c562645a
Signed by: nishi
GPG key ID: 27EF69B208EB9343
6 changed files with 77 additions and 32 deletions

View file

@ -26,7 +26,6 @@ typedef struct _MwLabelSegment MwLabelSegment;
typedef struct _MwListBoxEntry MwListBoxEntry;
typedef struct _MwTreeViewEntry MwTreeViewEntry;
typedef struct _MwDirectoryEntry MwDirectoryEntry;
typedef struct _MwListBoxPacket MwListBoxPacket;
typedef struct _MwBox* MwBox;
typedef struct _MwMouse MwMouse;
#ifdef _MILSKO
@ -202,11 +201,6 @@ struct _MwDirectoryEntry {
time_t mtime;
};
struct _MwListBoxPacket {
MwLLPixmap* pixmaps;
char*** names;
};
struct _MwBox {
int layout;
};

View file

@ -26,10 +26,10 @@ MWDECL MwClass MwListBoxClass;
* @param text Text
* @return Index
*/
MwInline int MwListBoxInsert(MwWidget handle, int row, int col, const char* text) {
MwInline int MwListBoxSet(MwWidget handle, int row, int col, const char* text) {
int out;
MwVaWidgetExecute(handle, "mwListBoxInsert", (void*)&out, row, col, text);
MwVaWidgetExecute(handle, "mwListBoxSet", (void*)&out, row, col, text);
return out;
}