aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1994-07-07 06:50:45 +0000
committerRichard M. Stallman1994-07-07 06:50:45 +0000
commit1d3dac41c0a34c3877618907ddc96e0364082537 (patch)
tree891e0078e5a3a03115198e86239e64a2e80cb56c /src
parent0a0e8fe62e40e1a620a48daac943ae897ed56517 (diff)
downloademacs-1d3dac41c0a34c3877618907ddc96e0364082537.tar.gz
emacs-1d3dac41c0a34c3877618907ddc96e0364082537.zip
(x_toolkit): New variable.
(syms_of_xfns): Set up Lisp var x-toolkit.
Diffstat (limited to 'src')
-rw-r--r--src/xfns.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/xfns.c b/src/xfns.c
index 3e04cf4cc7e..c138c4cacb1 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -90,6 +90,9 @@ extern void free_frame_menubar ();
90/* X Resource data base */ 90/* X Resource data base */
91static XrmDatabase xrdb; 91static XrmDatabase xrdb;
92 92
93/* 1 if using a toolkit, 0 otherwise. */
94static int x_toolkit;
95
93/* The class of this X application. */ 96/* The class of this X application. */
94#define EMACS_CLASS "Emacs" 97#define EMACS_CLASS "Emacs"
95 98
@@ -4442,7 +4445,15 @@ or when you set the mouse color.");
4442 Vmouse_depressed = Qnil; 4445 Vmouse_depressed = Qnil;
4443 4446
4444 DEFVAR_LISP ("x-no-window-manager", &Vx_no_window_manager, 4447 DEFVAR_LISP ("x-no-window-manager", &Vx_no_window_manager,
4445 "t if no X window manager is in use."); 4448 "Non-nil if no X window manager is in use.");
4449
4450 DEFVAR_BOOL ("x-toolkit", &x_toolkit,
4451 "Non-nil if this Emacs was built to use an X toolkit.");
4452#ifdef USE_X_TOOLKIT
4453 x_toolkit = 1;
4454#else
4455 x_toolkit = 0;
4456#endif
4446 4457
4447#ifdef HAVE_X11 4458#ifdef HAVE_X11
4448 defsubr (&Sx_get_resource); 4459 defsubr (&Sx_get_resource);