comparison src/xfns.c @ 8170:d92a24366b22

(x_toolkit): New variable. (syms_of_xfns): Set up Lisp var x-toolkit.
author Richard M. Stallman <rms@gnu.org>
date Thu, 07 Jul 1994 06:50:45 +0000
parents b0d56b9856c4
children 091cd6243cae
comparison
equal deleted inserted replaced
8169:09a8da4ffadf 8170:d92a24366b22
87 #define max(a,b) ((a) > (b) ? (a) : (b)) 87 #define max(a,b) ((a) > (b) ? (a) : (b))
88 88
89 #ifdef HAVE_X11 89 #ifdef HAVE_X11
90 /* X Resource data base */ 90 /* X Resource data base */
91 static XrmDatabase xrdb; 91 static XrmDatabase xrdb;
92
93 /* 1 if using a toolkit, 0 otherwise. */
94 static int x_toolkit;
92 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
96 #ifdef HAVE_X11R4 99 #ifdef HAVE_X11R4
4440 DEFVAR_LISP ("mouse-grabbed", &Vmouse_depressed, 4443 DEFVAR_LISP ("mouse-grabbed", &Vmouse_depressed,
4441 "Non-nil if a mouse button is currently depressed."); 4444 "Non-nil if a mouse button is currently depressed.");
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);
4449 #if 0 4460 #if 0
4450 defsubr (&Sx_draw_rectangle); 4461 defsubr (&Sx_draw_rectangle);