drag and drop beginnings
Some checks failed
pyrite-dev/milsko/pipeline/head There was a failure building this commit
Some checks failed
pyrite-dev/milsko/pipeline/head There was a failure building this commit
Reviewed-on: #33
This commit is contained in:
parent
7d6f6ca93a
commit
d3af13ebd6
15 changed files with 288 additions and 17 deletions
10
src/core.c
10
src/core.c
|
|
@ -658,6 +658,10 @@ void MwSetInteger(MwWidget handle, const char* key, int n) {
|
|||
|
||||
if(h->lowlevel != NULL) MwLLSetDarkTheme(h->lowlevel, n);
|
||||
}
|
||||
|
||||
if(strcmp(key, MwNacceptsDnD) == 0) {
|
||||
if(handle->lowlevel != NULL) MwLLSetupDragAndDrop(handle->lowlevel);
|
||||
}
|
||||
}
|
||||
|
||||
void MwSetText(MwWidget handle, const char* key, const char* value) {
|
||||
|
|
@ -692,6 +696,12 @@ void MwSetText(MwWidget handle, const char* key, const char* value) {
|
|||
if(strcmp(key, MwNbackground) == 0 || strcmp(key, MwNforeground) == 0 || strcmp(key, MwNsubBackground) == 0 || strcmp(key, MwNsubForeground) == 0) {
|
||||
MwForceRender(handle);
|
||||
}
|
||||
|
||||
if(strcmp(key, MwNacceptedMimeType) == 0) {
|
||||
if(handle->lowlevel != NULL) {
|
||||
arrput(handle->lowlevel->common.known_mime_types, value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void MwSetVoid(MwWidget handle, const char* key, void* value) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue