1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-08 04:30:45 -08:00

Bidi test case for xwidgets

Create a buffer with some text and a button.
Make the buffer be right-to-left.
This commit is contained in:
Joakim Verona 2015-01-16 20:15:47 +01:00
parent 0298a2c6a1
commit 8a10c6833e

View file

@ -39,6 +39,12 @@
(xwidget-insert (point-min) 'Button "button" 60 50)
(define-key (current-local-map) [xwidget-event] 'xwidget-handler-demo-basic))
(xwidget-demo "a-button-bidi"
(xwidget-insert (point-min) 'Button "button" 60 50)
(set (make-local-variable 'bidi-paragraph-direction) 'right-to-left)
(define-key (current-local-map) [xwidget-event] 'xwidget-handler-demo-basic))
(xwidget-demo "a-toggle-button"
(xwidget-insert (point-min) 'ToggleButton "toggle" 60 50)
(define-key (current-local-map) [xwidget-event] 'xwidget-handler-demo-basic))