diff lisp/device.el @ 462:0784d089fdc9 r21-2-46

Import from CVS: tag r21-2-46
author cvs
date Mon, 13 Aug 2007 11:44:37 +0200
parents 8de8e3f6228a
children da8cdcec6dff
line wrap: on
line diff
--- a/lisp/device.el	Mon Aug 13 11:43:25 2007 +0200
+++ b/lisp/device.el	Mon Aug 13 11:44:37 2007 +0200
@@ -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 @@
   "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))