diff options
author | nijtmans <nijtmans> | 2009-08-09 21:20:33 (GMT) |
---|---|---|
committer | nijtmans <nijtmans> | 2009-08-09 21:20:33 (GMT) |
commit | 7aefedb2ea921fbeb0f6d6b99afeb1224a319318 (patch) | |
tree | ce53da0fddc1c8e4847bca5680922173a39e21b2 /generic/ttk | |
parent | 7dc7cda6232cfd38f3af5083634039d33b1959c2 (diff) | |
download | tk-7aefedb2ea921fbeb0f6d6b99afeb1224a319318.zip tk-7aefedb2ea921fbeb0f6d6b99afeb1224a319318.tar.gz tk-7aefedb2ea921fbeb0f6d6b99afeb1224a319318.tar.bz2 |
Eliminate various gcc warnings
include <vssym32.h> only when available
Diffstat (limited to 'generic/ttk')
-rw-r--r-- | generic/ttk/ttkInit.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/generic/ttk/ttkInit.c b/generic/ttk/ttkInit.c index 76d1768..4294a9e 100644 --- a/generic/ttk/ttkInit.c +++ b/generic/ttk/ttkInit.c @@ -1,4 +1,4 @@ -/* $Id: ttkInit.c,v 1.8 2008/04/27 22:41:12 dkf Exp $ +/* $Id: ttkInit.c,v 1.9 2009/08/09 21:20:34 nijtmans Exp $ * Copyright (c) 2003, Joe English * * Ttk package: initialization routine and miscellaneous utilities. @@ -114,17 +114,17 @@ void TtkCheckStateOption(WidgetCore *corePtr, Tcl_Obj *objPtr) */ void TtkSendVirtualEvent(Tk_Window tgtWin, const char *eventName) { - XEvent event; + union {XEvent general; XVirtualEvent virtual;} event; memset(&event, 0, sizeof(event)); - event.xany.type = VirtualEvent; - event.xany.serial = NextRequest(Tk_Display(tgtWin)); - event.xany.send_event = False; - event.xany.window = Tk_WindowId(tgtWin); - event.xany.display = Tk_Display(tgtWin); - ((XVirtualEvent *) &event)->name = Tk_GetUid(eventName); - - Tk_QueueWindowEvent(&event, TCL_QUEUE_TAIL); + event.general.xany.type = VirtualEvent; + event.general.xany.serial = NextRequest(Tk_Display(tgtWin)); + event.general.xany.send_event = False; + event.general.xany.window = Tk_WindowId(tgtWin); + event.general.xany.display = Tk_Display(tgtWin); + event.virtual.name = Tk_GetUid(eventName); + + Tk_QueueWindowEvent(&event.general, TCL_QUEUE_TAIL); } /* TtkEnumerateOptions, TtkGetOptionValue -- |