summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoakim Verona <joakim@verona.se>2016-04-02 17:49:27 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2016-04-02 18:32:13 -0700
commit36e05f0bf713175a06d14255cf707543ad1a296e (patch)
tree14faa853d85acf9ee5c99e0adf275e3b1d150969 /src
parent104221731eb0e24bd6ec4c9e63f4f7590fd07c97 (diff)
downloademacs-36e05f0bf713175a06d14255cf707543ad1a296e.tar.gz
Remove unused arguments from make-xwidget
The arguments BEG and END were unused, and are now removed. * display.texi (Xwidgets): Document the change * xwidget.el (make-xwidget, xwidget-insert) (xwidget-webkit-new-session): Reflect changed arguments * xwidget.c (Fmake_xwidget, syms_of_xwidget): Reflect changed arguments
Diffstat (limited to 'src')
-rw-r--r--src/xwidget.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/src/xwidget.c b/src/xwidget.c
index c24475f5312..4f1df1aabdf 100644
--- a/src/xwidget.c
+++ b/src/xwidget.c
@@ -156,27 +156,23 @@ webkit_navigation_policy_decision_requested_cb (WebKitWebView *,
DEFUN ("make-xwidget",
Fmake_xwidget, Smake_xwidget,
- 7, 8, 0,
- doc: /* Make an xwidget from BEG to END of TYPE.
+ 5, 6, 0,
+ doc: /* Make an xwidget of TYPE.
If BUFFER is nil, use the current buffer.
If BUFFER is a string and no such buffer exists, create it.
TYPE is a symbol which can take one of the following values:
-- webkit-osr
+- webkit
Returns the newly constructed xwidget, or nil if construction fails. */)
- (Lisp_Object beg, Lisp_Object end, Lisp_Object type,
+ (Lisp_Object type,
Lisp_Object title, Lisp_Object width, Lisp_Object height,
Lisp_Object arguments, Lisp_Object buffer)
{
CHECK_SYMBOL (type);
CHECK_NATNUM (width);
CHECK_NATNUM (height);
- /* This should work a bit like "make-button"
- (make-button BEG END &rest PROPERTIES)
- TYPE etc. should be keyword args eventually.
- (make-xwidget 3 3 'button "oei" 31 31 nil)
- (xwidget-info (car xwidget-list)) */
+
struct xwidget *xw = allocate_xwidget ();
Lisp_Object val;
xw->type = type;
@@ -987,7 +983,7 @@ syms_of_xwidget (void)
defsubr (&Sxwidget_webkit_goto_uri);
defsubr (&Sxwidget_webkit_execute_script);
defsubr (&Sxwidget_webkit_get_title);
- DEFSYM (Qwebkit_osr, "webkit-osr");
+ DEFSYM (Qwebkit_osr, "webkit");
defsubr (&Sxwidget_size_request);
defsubr (&Sdelete_xwidget_view);