summaryrefslogtreecommitdiffstats
path: root/generic/tkListbox.c
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2016-05-01 20:03:04 (GMT)
committerfvogel <fvogelnew1@free.fr>2016-05-01 20:03:04 (GMT)
commit09fba1aae3aed0ba4d73890c19fe4c867fce8f82 (patch)
tree1b64ab21b1403ee5f4037e73ab310526762fe2f6 /generic/tkListbox.c
parenta49d18f50fd597f7b77eae71f3df70469136f839 (diff)
parentede13558f13645c01b9dff12f05b15d6e0435995 (diff)
downloadtk-09fba1aae3aed0ba4d73890c19fe4c867fce8f82.zip
tk-09fba1aae3aed0ba4d73890c19fe4c867fce8f82.tar.gz
tk-09fba1aae3aed0ba4d73890c19fe4c867fce8f82.tar.bz2
Merged core-8-6-branchtip_446_undodepth
Diffstat (limited to 'generic/tkListbox.c')
-rw-r--r--generic/tkListbox.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/generic/tkListbox.c b/generic/tkListbox.c
index c7effdd..b059727 100644
--- a/generic/tkListbox.c
+++ b/generic/tkListbox.c
@@ -3223,16 +3223,7 @@ static void
GenerateListboxSelectEvent(
Listbox *listPtr) /* Information about widget. */
{
- union {XEvent general; XVirtualEvent virtual;} event;
-
- memset(&event, 0, sizeof(event));
- event.general.xany.type = VirtualEvent;
- event.general.xany.serial = NextRequest(Tk_Display(listPtr->tkwin));
- event.general.xany.send_event = False;
- event.general.xany.window = Tk_WindowId(listPtr->tkwin);
- event.general.xany.display = Tk_Display(listPtr->tkwin);
- event.virtual.name = Tk_GetUid("ListboxSelect");
- Tk_HandleEvent(&event.general);
+ TkSendVirtualEvent(listPtr->tkwin, "ListboxSelect", NULL);
}
/*