mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2025-12-30 22:20:50 +00:00
remove MwLLSetBackground
This commit is contained in:
@@ -183,8 +183,6 @@ MWDECL void (*MwLLMakePopup)(MwLL handle, MwLL parent);
|
||||
MWDECL void (*MwLLBeginStateChange)(MwLL handle);
|
||||
MWDECL void (*MwLLEndStateChange)(MwLL handle);
|
||||
|
||||
MWDECL void (*MwLLSetBackground)(MwLL handle, MwLLColor color);
|
||||
|
||||
MWDECL void (*MwLLFocus)(MwLL handle);
|
||||
MWDECL void (*MwLLGrabPointer)(MwLL handle, int toggle);
|
||||
|
||||
|
||||
@@ -43,8 +43,6 @@
|
||||
\
|
||||
MwLLBeginStateChange = MwLLBeginStateChangeImpl; \
|
||||
MwLLEndStateChange = MwLLEndStateChangeImpl; \
|
||||
\
|
||||
MwLLSetBackground = MwLLSetBackgroundImpl; \
|
||||
\
|
||||
MwLLFocus = MwLLFocusImpl; \
|
||||
MwLLGrabPointer = MwLLGrabPointerImpl; \
|
||||
|
||||
@@ -344,11 +344,6 @@ static void MwLLFreeColorImpl(MwLLColor color) {
|
||||
free(color);
|
||||
}
|
||||
|
||||
static void MwLLSetBackgroundImpl(MwLL handle, MwLLColor color) {
|
||||
(void)handle;
|
||||
(void)color;
|
||||
}
|
||||
|
||||
static void MwLLGetXYWHImpl(MwLL handle, int* x, int* y, unsigned int* w, unsigned int* h) {
|
||||
RECT rc;
|
||||
|
||||
|
||||
@@ -398,10 +398,6 @@ static void MwLLFreeColorImpl(MwLLColor color) {
|
||||
free(color);
|
||||
}
|
||||
|
||||
static void MwLLSetBackgroundImpl(MwLL handle, MwLLColor color) {
|
||||
XSetWindowBackground(handle->x11.display, handle->x11.window, color->x11.pixel);
|
||||
}
|
||||
|
||||
static int MwLLPendingImpl(MwLL handle) {
|
||||
XEvent ev;
|
||||
if(XCheckTypedWindowEvent(handle->x11.display, handle->x11.window, ClientMessage, &ev) || XCheckWindowEvent(handle->x11.display, handle->x11.window, mask, &ev)) {
|
||||
|
||||
@@ -390,11 +390,6 @@ void MwSetText(MwWidget handle, const char* key, const char* value) {
|
||||
}
|
||||
}
|
||||
if(handle->prop_event) MwDispatch3(handle, prop_change, key);
|
||||
if(value != NULL && strcmp(key, MwNbackground) == 0) {
|
||||
MwLLColor c = MwParseColor(handle, value);
|
||||
MwLLSetBackground(handle->lowlevel, c);
|
||||
MwLLFreeColor(c);
|
||||
}
|
||||
if(strcmp(key, MwNbackground) == 0 || strcmp(key, MwNforeground) == 0 || strcmp(key, MwNsubBackground) == 0 || strcmp(key, MwNsubForeground) == 0) {
|
||||
MwForceRender(handle);
|
||||
}
|
||||
|
||||
@@ -39,8 +39,6 @@ void (*MwLLMakePopup)(MwLL handle, MwLL parent);
|
||||
void (*MwLLBeginStateChange)(MwLL handle);
|
||||
void (*MwLLEndStateChange)(MwLL handle);
|
||||
|
||||
void (*MwLLSetBackground)(MwLL handle, MwLLColor color);
|
||||
|
||||
void (*MwLLFocus)(MwLL handle);
|
||||
void (*MwLLGrabPointer)(MwLL handle, int toggle);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user