device-independence violations occur in faces.el. */
int first_x_device = NILP (Vdefault_x_device) && EQ (type, Qx);
#endif
+#ifdef HAVE_GTK
+ int first_gtk_device = NILP (Vdefault_gtk_device) && EQ (type, Qgtk);
+#endif
GCPRO3 (device, console, name);
if (first_x_device)
init_global_resources (d);
#endif
+#ifdef HAVE_GTK
+ if (first_gtk_device)
+ init_global_resources (d);
+#endif
init_device_resources (d);
MAYBE_DEVMETH (d, finish_init_device, (d, props));
/* #### This should probably be a device method but it is time for
19.14 to go out the door. */
-#ifdef HAVE_X_WINDOWS
+ /* #### BILL!!! Should this deal with HAVE_MSWINDOWS as well? */
+#if defined (HAVE_X_WINDOWS) || defined (HAVE_GTK)
/* Next delete all frames which have the popup property to avoid
deleting a child after its parent. */
DEVICE_FRAME_LOOP (frmcons, d)
Lisp_Object winsy = domain_device_type (domain);
struct console_methods *meth = decode_console_type (winsy, ERROR_ME_NOT);
assert (meth);
- return (MAYBE_INT_CONTYPE_METH (meth, device_implementation_flags, ())
- & XDEVIMPF_PIXEL_GEOMETRY);
+ return CONMETH_IMPL_FLAG (meth, XDEVIMPF_PIXEL_GEOMETRY);
}
DEFUN ("domain-device-type", Fdomain_device_type, 0, 1, 0, /*