diff options
author | fvogel <fvogelnew1@free.fr> | 2016-05-02 20:21:21 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2016-05-02 20:21:21 (GMT) |
commit | fd415e01f99a7787f9f26c40e9757c64dbe09f06 (patch) | |
tree | 08ab6e72a5605f87b608c52b0b2644498f5478f4 /generic/tkTextDisp.c | |
parent | dd7c680bf0627dc809b4b205ad1258100deaa466 (diff) | |
parent | b1abab58282cc8ff89e73762114369e7a11ce07f (diff) | |
download | tk-fd415e01f99a7787f9f26c40e9757c64dbe09f06.zip tk-fd415e01f99a7787f9f26c40e9757c64dbe09f06.tar.gz tk-fd415e01f99a7787f9f26c40e9757c64dbe09f06.tar.bz2 |
Merged core-8-6-branch
Diffstat (limited to 'generic/tkTextDisp.c')
-rw-r--r-- | generic/tkTextDisp.c | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/generic/tkTextDisp.c b/generic/tkTextDisp.c index 0849307..81bce94 100644 --- a/generic/tkTextDisp.c +++ b/generic/tkTextDisp.c @@ -3104,7 +3104,7 @@ AsyncUpdateLineMetrics( * Send the <<WidgetViewSync>> event related to the text widget * line metrics asynchronous update. * This is equivalent to: - * event generate $textWidget <<WidgetViewSync>> -detail $s + * event generate $textWidget <<WidgetViewSync>> -data $s * where $s is the sync status: true (when the widget view is in * sync with its internal data) or false (when it is not). * @@ -3120,19 +3120,10 @@ AsyncUpdateLineMetrics( static void GenerateWidgetViewSyncEvent( TkText *textPtr, /* Information about text widget. */ - Bool InSync) /* True if in sync, false otherwise */ + Bool InSync) /* true if in sync, false otherwise */ { - union {XEvent general; XVirtualEvent virtual;} event; - - memset(&event, 0, sizeof(event)); - event.general.xany.type = VirtualEvent; - event.general.xany.serial = NextRequest(Tk_Display(textPtr->tkwin)); - event.general.xany.send_event = False; - event.general.xany.window = Tk_WindowId(textPtr->tkwin); - event.general.xany.display = Tk_Display(textPtr->tkwin); - event.virtual.name = Tk_GetUid("WidgetViewSync"); - event.virtual.user_data = Tcl_NewBooleanObj(InSync); - Tk_HandleEvent(&event.general); + TkSendVirtualEvent(textPtr->tkwin, "WidgetViewSync", + Tcl_NewBooleanObj(InSync)); } /* |