diff options
| author | Joakim Verona | 2011-07-16 01:29:35 +0200 |
|---|---|---|
| committer | Joakim Verona | 2011-07-16 01:29:35 +0200 |
| commit | b9cc0253ffe73b2c5c2cf4dddd65786a2d03d8c2 (patch) | |
| tree | fe46c5982812a79e39371976d7592e44af464750 /lisp | |
| parent | 4726dd742c03f9aad16321ccc6c76581c2f5c94f (diff) | |
| download | emacs-b9cc0253ffe73b2c5c2cf4dddd65786a2d03d8c2.tar.gz emacs-b9cc0253ffe73b2c5c2cf4dddd65786a2d03d8c2.zip | |
better resize that supports webkit-osr. also size-requisition that returns desired size rather than allocated size(webkit-osr only atm)
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/xwidget.el | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/lisp/xwidget.el b/lisp/xwidget.el index 9c9f9c49b00..4c94b7e291c 100644 --- a/lisp/xwidget.el +++ b/lisp/xwidget.el | |||
| @@ -16,20 +16,6 @@ see xwidget.c for types suitable for TYPE. | |||
| 16 | id)) | 16 | id)) |
| 17 | 17 | ||
| 18 | 18 | ||
| 19 | (defun xwidget-resize-at (pos width height) | ||
| 20 | "Resize xwidget at postion POS to WIDTH and HEIGHT." | ||
| 21 | (let* | ||
| 22 | ((xwidget-prop (cdr (get-text-property pos 'display))) | ||
| 23 | (id (plist-get xwidget-prop ':xwidget-id))) | ||
| 24 | (setq xwidget-prop (plist-put xwidget-prop ':width width)) | ||
| 25 | (setq xwidget-prop (plist-put xwidget-prop ':height height)) | ||
| 26 | |||
| 27 | (put-text-property pos (+ 1 pos) 'display (cons 'xwidget xwidget-prop)) | ||
| 28 | (message "prop %s" xwidget-prop) | ||
| 29 | (message "id %d w %d h %d" id width height) | ||
| 30 | (xwidget-resize-internal id width height) | ||
| 31 | )) | ||
| 32 | |||
| 33 | 19 | ||
| 34 | (defun xwidget-socket-handler () | 20 | (defun xwidget-socket-handler () |
| 35 | "creates plug for socket. TODO" | 21 | "creates plug for socket. TODO" |