rename clipboard_received to clipboard

This commit is contained in:
Nishi 2025-12-31 04:35:10 +09:00
commit 72820e87f1
Signed by: nishi
GPG key ID: 27EF69B208EB9343
28 changed files with 58 additions and 54 deletions

View file

@ -144,7 +144,7 @@ static void prop_change(MwWidget handle, const char* prop) {
}
}
static void clipboard_received(MwWidget handle, const char* data) {
static void clipboard(MwWidget handle, const char* data) {
MwEntry t = handle->internal;
const char* str = MwGetText(handle, MwNtext);
char* out = malloc(strlen(str) + strlen(data) + 1);
@ -162,22 +162,22 @@ static void clipboard_received(MwWidget handle, const char* data) {
}
MwClassRec MwEntryClassRec = {
create, /* create */
destroy, /* destroy */
draw, /* draw */
NULL, /* click */
NULL, /* parent_resize */
prop_change, /* prop_change */
NULL, /* mouse_move */
MwForceRender2, /* mouse_up */
MwForceRender2, /* mouse_down */
key, /* key */
NULL, /* execute */
NULL, /* tick */
NULL, /* resize */
NULL, /* children_update */
NULL, /* children_prop_change */
clipboard_received, /* clipboard_received */
create, /* create */
destroy, /* destroy */
draw, /* draw */
NULL, /* click */
NULL, /* parent_resize */
prop_change, /* prop_change */
NULL, /* mouse_move */
MwForceRender2, /* mouse_up */
MwForceRender2, /* mouse_down */
key, /* key */
NULL, /* execute */
NULL, /* tick */
NULL, /* resize */
NULL, /* children_update */
NULL, /* children_prop_change */
clipboard, /* clipboard */
NULL,
NULL,
NULL,