format
This commit is contained in:
parent
4bdda59693
commit
d3147ac087
24 changed files with 80 additions and 80 deletions
|
|
@ -393,9 +393,9 @@ static void MwLLNextEventImpl(MwLL handle) {
|
||||||
|
|
||||||
(void)handle;
|
(void)handle;
|
||||||
|
|
||||||
if(handle->gdi.get_clipboard){
|
if(handle->gdi.get_clipboard) {
|
||||||
HGLOBAL hg;
|
HGLOBAL hg;
|
||||||
if(OpenClipboard(handle->gdi.hWnd) != 0 && (hg = GetClipboardData(CF_TEXT)) != NULL){
|
if(OpenClipboard(handle->gdi.hWnd) != 0 && (hg = GetClipboardData(CF_TEXT)) != NULL) {
|
||||||
char* txt = malloc(GlobalSize(hg));
|
char* txt = malloc(GlobalSize(hg));
|
||||||
char* clp = GlobalLock(hg);
|
char* clp = GlobalLock(hg);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -107,7 +107,7 @@ static void llfocusouthandler(MwLL handle, void* data) {
|
||||||
MwDispatchUserHandler(h, MwNfocusOutHandler, data);
|
MwDispatchUserHandler(h, MwNfocusOutHandler, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void llclipboardreceivedhandler(MwLL handle, void* data){
|
static void llclipboardreceivedhandler(MwLL handle, void* data) {
|
||||||
MwWidget h = (MwWidget)handle->common.user;
|
MwWidget h = (MwWidget)handle->common.user;
|
||||||
|
|
||||||
MwDispatch3(h, clipboard_received, data);
|
MwDispatch3(h, clipboard_received, data);
|
||||||
|
|
|
||||||
|
|
@ -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_received(MwWidget handle, const char* data) {
|
||||||
MwEntry t = handle->internal;
|
MwEntry t = handle->internal;
|
||||||
const char* str = MwGetText(handle, MwNtext);
|
const char* str = MwGetText(handle, MwNtext);
|
||||||
char* out = malloc(strlen(str) + strlen(data) + 1);
|
char* out = malloc(strlen(str) + strlen(data) + 1);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue