X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=lisp%2Fdevice.el;h=2942e1d1384262d93658864487237e70686f0c92;hb=5bf0bc915ee34ab3f74c0c022e5b933f8d2966e0;hp=8468f335407247603113b2b8090fe69afabb9fcd;hpb=c8aa261a7bf3eb1389d2e018be1d715f73cacd66;p=chise%2Fxemacs-chise.git- diff --git a/lisp/device.el b/lisp/device.el index 8468f33..2942e1d 100644 --- a/lisp/device.el +++ b/lisp/device.el @@ -52,6 +52,7 @@ This is equivalent to the type of the device's console. Value is `tty' for a tty device (a character-only terminal), `x' for a device that is a screen on an X display, +`gtk' for a device that is a GTK connection. `ns' for a device that is a NeXTstep connection (not yet implemented), `mswindows' for a device that is a MS Windows workstation, `msprinter' for a device that is a MS Windows printer connection, @@ -103,6 +104,10 @@ it is nil, it is assumes to be the value returned by emacs-pid." "Return the number of color cells of DEVICE, or nil if unknown." (device-system-metric device 'num-color-cells)) +(defun make-gtk-device () + "Create a new GTK device." + (make-device 'gtk nil)) + (defun make-x-device (&optional display) "Create a new device connected to DISPLAY." (make-device 'x display))