case PVEC_XWIDGET:
#ifdef HAVE_XWIDGETS
{
+#ifdef USE_GTK
int len = sprintf (buf, "#<xwidget %u %p>",
XXWIDGET (obj)->xwidget_id,
XXWIDGET (obj)->widget_osr);
+#else
+ int len = sprintf (buf, "#<xwidget %u %p>",
+ XXWIDGET (obj)->xwidget_id,
+ XXWIDGET (obj)->xwWidget);
+#endif
strout (buf, len, len, printcharfun);
break;
}
Vxwidget_list = Fcons (val, Vxwidget_list);
xw->plist = Qnil;
xw->xwidget_id = ++xwidget_counter;
+ xw->find_text = NULL;
Fputhash (make_fixnum (xw->xwidget_id), val, id_to_xwidget_map);
xw->widgetwindow_osr = NULL;
xw->widget_osr = NULL;
xw->hit_result = 0;
- xw->find_text = NULL;
if (EQ (xw->type, Qwebkit))
{
block_input ();
int height;
int width;
uint32_t xwidget_id;
+ char *find_text;
#if defined (USE_GTK)
/* For offscreen widgets, unused if not osr. */
GtkWidget *widget_osr;
GtkWidget *widgetwindow_osr;
guint hit_result;
- gchar *find_text;
#elif defined (NS_IMPL_COCOA)
# ifdef __OBJC__
/* For offscreen widgets, unused if not osr. */
void store_xwidget_js_callback_event (struct xwidget *xw,
Lisp_Object proc,
Lisp_Object argument);
-struct xwidget_view *xwidget_view_from_window (Window wdesc);
-void xwidget_expose (struct xwidget_view *xv);
extern struct xwidget *xwidget_from_id (uint32_t id);
+
+#ifdef HAVE_X_WINDOWS
+struct xwidget_view *xwidget_view_from_window (Window wdesc);
+void xwidget_expose (struct xwidget_view *xv);
extern void kill_frame_xwidget_views (struct frame *f);
extern void xwidget_button (struct xwidget_view *, bool, int,
int, int, int, Time);
extern void xwidget_motion_or_crossing (struct xwidget_view *,
const XEvent *);
+#endif
#else
INLINE_HEADER_BEGIN
INLINE void syms_of_xwidget (void) {}