mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-24 05:47:36 +00:00
Raise an error if creating an unknown xwidget type
* src/xwidget.c (Fmake_xwidget): Error if TYPE is invalid (bug#51682).
This commit is contained in:
parent
394f6b9167
commit
b5efdccefb
1 changed files with 3 additions and 0 deletions
|
|
@ -128,6 +128,9 @@ fails. */)
|
|||
CHECK_FIXNAT (width);
|
||||
CHECK_FIXNAT (height);
|
||||
|
||||
if (!EQ (type, Qwebkit))
|
||||
error ("Bad xwidget type");
|
||||
|
||||
struct xwidget *xw = allocate_xwidget ();
|
||||
Lisp_Object val;
|
||||
xw->type = type;
|
||||
|
|
|
|||
Loading…
Reference in a new issue