diff options
| author | Paul Eggert | 2016-04-02 17:50:03 -0700 |
|---|---|---|
| committer | Paul Eggert | 2016-04-02 18:32:13 -0700 |
| commit | 13c8f29ce361e3aad71cf2b44e76d5cfdaf7dda3 (patch) | |
| tree | baa919aba1caa888ae7a7d6608dab59f3352df4c | |
| parent | 36e05f0bf713175a06d14255cf707543ad1a296e (diff) | |
| download | emacs-13c8f29ce361e3aad71cf2b44e76d5cfdaf7dda3.tar.gz emacs-13c8f29ce361e3aad71cf2b44e76d5cfdaf7dda3.zip | |
make-xwidget unused arg cleanup
* doc/lispref/display.texi (Xwidgets): Remove stray refs.
* src/xwidget.c (syms_of_xwidget): Qwebkit, not Qwebkit_osr.
| -rw-r--r-- | doc/lispref/display.texi | 5 | ||||
| -rw-r--r-- | src/xwidget.c | 14 |
2 files changed, 9 insertions, 10 deletions
diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi index 2d8b60d01e2..9ea9548582f 100644 --- a/doc/lispref/display.texi +++ b/doc/lispref/display.texi | |||
| @@ -5642,8 +5642,7 @@ in a @code{display} text or overlay property (@pxref{Display | |||
| 5642 | Property}). | 5642 | Property}). |
| 5643 | 5643 | ||
| 5644 | @defun make-xwidget type title width height arguments &optional buffer | 5644 | @defun make-xwidget type title width height arguments &optional buffer |
| 5645 | This creates an xwidget object between @var{beg} and @var{end}, buffer | 5645 | This creates and returns an xwidget object. If |
| 5646 | positions in @var{buffer}, and returns the new object. If | ||
| 5647 | @var{buffer} is omitted or @code{nil}, it defaults to the current | 5646 | @var{buffer} is omitted or @code{nil}, it defaults to the current |
| 5648 | buffer. If @var{buffer} names a buffer that doesn't exist, it will be | 5647 | buffer. If @var{buffer} names a buffer that doesn't exist, it will be |
| 5649 | created. The @var{type} identifies the type of the xwidget component, | 5648 | created. The @var{type} identifies the type of the xwidget component, |
| @@ -5651,7 +5650,7 @@ it can be one of the following: | |||
| 5651 | 5650 | ||
| 5652 | @table @code | 5651 | @table @code |
| 5653 | @item webkit | 5652 | @item webkit |
| 5654 | The WebKit (@dfn{on-stack replacement}) component. | 5653 | The WebKit component. |
| 5655 | @end table | 5654 | @end table |
| 5656 | 5655 | ||
| 5657 | The @var{width} and @var{height} arguments specify the widget size in | 5656 | The @var{width} and @var{height} arguments specify the widget size in |
diff --git a/src/xwidget.c b/src/xwidget.c index 4f1df1aabdf..8ff4c23b1f2 100644 --- a/src/xwidget.c +++ b/src/xwidget.c | |||
| @@ -187,7 +187,7 @@ Returns the newly constructed xwidget, or nil if construction fails. */) | |||
| 187 | xw->widget_osr = NULL; | 187 | xw->widget_osr = NULL; |
| 188 | xw->plist = Qnil; | 188 | xw->plist = Qnil; |
| 189 | 189 | ||
| 190 | if (EQ (xw->type, Qwebkit_osr)) | 190 | if (EQ (xw->type, Qwebkit)) |
| 191 | { | 191 | { |
| 192 | block_input (); | 192 | block_input (); |
| 193 | xw->widgetwindow_osr = gtk_offscreen_window_new (); | 193 | xw->widgetwindow_osr = gtk_offscreen_window_new (); |
| @@ -197,7 +197,7 @@ Returns the newly constructed xwidget, or nil if construction fails. */) | |||
| 197 | /* WebKit OSR is the only scrolled component at the moment. */ | 197 | /* WebKit OSR is the only scrolled component at the moment. */ |
| 198 | xw->widgetscrolledwindow_osr = NULL; | 198 | xw->widgetscrolledwindow_osr = NULL; |
| 199 | 199 | ||
| 200 | if (EQ (xw->type, Qwebkit_osr)) | 200 | if (EQ (xw->type, Qwebkit)) |
| 201 | { | 201 | { |
| 202 | xw->widgetscrolledwindow_osr = gtk_scrolled_window_new (NULL, NULL); | 202 | xw->widgetscrolledwindow_osr = gtk_scrolled_window_new (NULL, NULL); |
| 203 | gtk_scrolled_window_set_min_content_height | 203 | gtk_scrolled_window_set_min_content_height |
| @@ -218,7 +218,7 @@ Returns the newly constructed xwidget, or nil if construction fails. */) | |||
| 218 | gtk_widget_set_size_request (GTK_WIDGET (xw->widget_osr), xw->width, | 218 | gtk_widget_set_size_request (GTK_WIDGET (xw->widget_osr), xw->width, |
| 219 | xw->height); | 219 | xw->height); |
| 220 | 220 | ||
| 221 | if (EQ (xw->type, Qwebkit_osr)) | 221 | if (EQ (xw->type, Qwebkit)) |
| 222 | { | 222 | { |
| 223 | gtk_container_add (GTK_CONTAINER (xw->widgetwindow_osr), | 223 | gtk_container_add (GTK_CONTAINER (xw->widgetwindow_osr), |
| 224 | xw->widgetscrolledwindow_osr); | 224 | xw->widgetscrolledwindow_osr); |
| @@ -239,7 +239,7 @@ Returns the newly constructed xwidget, or nil if construction fails. */) | |||
| 239 | g_object_set_data (G_OBJECT (xw->widgetwindow_osr), XG_XWIDGET, xw); | 239 | g_object_set_data (G_OBJECT (xw->widgetwindow_osr), XG_XWIDGET, xw); |
| 240 | 240 | ||
| 241 | /* signals */ | 241 | /* signals */ |
| 242 | if (EQ (xw->type, Qwebkit_osr)) | 242 | if (EQ (xw->type, Qwebkit)) |
| 243 | { | 243 | { |
| 244 | g_signal_connect (G_OBJECT (xw->widget_osr), | 244 | g_signal_connect (G_OBJECT (xw->widget_osr), |
| 245 | "document-load-finished", | 245 | "document-load-finished", |
| @@ -497,7 +497,7 @@ xwidget_init_view (struct xwidget *xww, | |||
| 497 | XSETWINDOW (xv->w, s->w); | 497 | XSETWINDOW (xv->w, s->w); |
| 498 | XSETXWIDGET (xv->model, xww); | 498 | XSETXWIDGET (xv->model, xww); |
| 499 | 499 | ||
| 500 | if (EQ (xww->type, Qwebkit_osr)) | 500 | if (EQ (xww->type, Qwebkit)) |
| 501 | { | 501 | { |
| 502 | xv->widget = gtk_drawing_area_new (); | 502 | xv->widget = gtk_drawing_area_new (); |
| 503 | /* Expose event handling. */ | 503 | /* Expose event handling. */ |
| @@ -508,7 +508,7 @@ xwidget_init_view (struct xwidget *xww, | |||
| 508 | g_signal_connect (G_OBJECT (xww->widgetwindow_osr), "damage-event", | 508 | g_signal_connect (G_OBJECT (xww->widgetwindow_osr), "damage-event", |
| 509 | G_CALLBACK (offscreen_damage_event), xv->widget); | 509 | G_CALLBACK (offscreen_damage_event), xv->widget); |
| 510 | 510 | ||
| 511 | if (EQ (xww->type, Qwebkit_osr)) | 511 | if (EQ (xww->type, Qwebkit)) |
| 512 | { | 512 | { |
| 513 | g_signal_connect (G_OBJECT (xv->widget), "button-press-event", | 513 | g_signal_connect (G_OBJECT (xv->widget), "button-press-event", |
| 514 | G_CALLBACK (xwidget_osr_event_forward), NULL); | 514 | G_CALLBACK (xwidget_osr_event_forward), NULL); |
| @@ -983,7 +983,7 @@ syms_of_xwidget (void) | |||
| 983 | defsubr (&Sxwidget_webkit_goto_uri); | 983 | defsubr (&Sxwidget_webkit_goto_uri); |
| 984 | defsubr (&Sxwidget_webkit_execute_script); | 984 | defsubr (&Sxwidget_webkit_execute_script); |
| 985 | defsubr (&Sxwidget_webkit_get_title); | 985 | defsubr (&Sxwidget_webkit_get_title); |
| 986 | DEFSYM (Qwebkit_osr, "webkit"); | 986 | DEFSYM (Qwebkit, "webkit"); |
| 987 | 987 | ||
| 988 | defsubr (&Sxwidget_size_request); | 988 | defsubr (&Sxwidget_size_request); |
| 989 | defsubr (&Sdelete_xwidget_view); | 989 | defsubr (&Sdelete_xwidget_view); |