Import Tk 8.6.11
This commit is contained in:
@@ -4,7 +4,6 @@
|
||||
* Core widget utilities.
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
#include "tkInt.h"
|
||||
#include "ttkTheme.h"
|
||||
#include "ttkWidget.h"
|
||||
@@ -263,7 +262,7 @@ static const unsigned CoreEventMask
|
||||
|
||||
static void CoreEventProc(ClientData clientData, XEvent *eventPtr)
|
||||
{
|
||||
WidgetCore *corePtr = clientData;
|
||||
WidgetCore *corePtr = (WidgetCore *)clientData;
|
||||
|
||||
switch (eventPtr->type)
|
||||
{
|
||||
@@ -310,12 +309,15 @@ static void CoreEventProc(ClientData clientData, XEvent *eventPtr)
|
||||
corePtr->state |= TTK_STATE_HOVER;
|
||||
TtkRedisplayWidget(corePtr);
|
||||
break;
|
||||
case VirtualEvent:
|
||||
if (!strcmp("ThemeChanged", ((XVirtualEvent *)(eventPtr))->name)) {
|
||||
case VirtualEvent: {
|
||||
const char *name = ((XVirtualEvent *)eventPtr)->name;
|
||||
if ((name != NULL) && !strcmp("ThemeChanged", name)) {
|
||||
(void)UpdateLayout(corePtr->interp, corePtr);
|
||||
SizeChanged(corePtr);
|
||||
TtkRedisplayWidget(corePtr);
|
||||
}
|
||||
break;
|
||||
}
|
||||
default:
|
||||
/* can't happen... */
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user