Mercurial > hg > xemacs-beta
annotate lisp/gtk-init.el @ 5423:d88ad9ccfa66
Migrate the rest of tests/ to GPLv3.
- drag 'n drop was also done by Oliver Graf, so samy copyright
- with gtk-test.glade, the only question was where to actually stick
the attribution; inserted XML comment
author | Mike Sperber <sperber@deinprogramm.de> |
---|---|
date | Sun, 31 Oct 2010 01:35:37 +0100 |
parents | 308d34e9f07d |
children | 3d1f8f0e690f |
rev | line source |
---|---|
462 | 1 ;;; gtk-init.el --- initialization code for mswindows |
2 ;; Copyright (C) 1990, 1993, 1994 Free Software Foundation, Inc. | |
3 ;; Copyright (C) 1995 Board of Trustees, University of Illinois. | |
4 ;; Copyright (C) 1995, 1996 Ben Wing. | |
5 | |
6 ;; Author: various | |
7 ;; Rewritten for Gtk by: William Perry | |
8 | |
9 ;; This file is part of XEmacs. | |
10 | |
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
4477
diff
changeset
|
11 ;; XEmacs is free software: you can redistribute it and/or modify it |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
4477
diff
changeset
|
12 ;; under the terms of the GNU General Public License as published by the |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
4477
diff
changeset
|
13 ;; Free Software Foundation, either version 3 of the License, or (at your |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
4477
diff
changeset
|
14 ;; option) any later version. |
462 | 15 |
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
4477
diff
changeset
|
16 ;; XEmacs is distributed in the hope that it will be useful, but WITHOUT |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
4477
diff
changeset
|
17 ;; ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
4477
diff
changeset
|
18 ;; FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
4477
diff
changeset
|
19 ;; for more details. |
462 | 20 |
21 ;; You should have received a copy of the GNU General Public License | |
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
4477
diff
changeset
|
22 ;; along with XEmacs. If not, see <http://www.gnu.org/licenses/>. |
462 | 23 |
502 | 24 (globally-declare-boundp |
4477
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
25 '(gtk-initial-argv-list gtk-initial-geometry)) |
506 | 26 |
27 (globally-declare-fboundp | |
28 '(gtk-keysym-on-keyboard-p)) | |
502 | 29 |
4477
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
30 (defvar gtk-early-lisp-options-file "~/.xemacs/gtk-options.el" |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
31 "Path where GTK-specific early options should be stored. |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
32 |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
33 This allows the user to set initial geometry without using GNOME and session |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
34 management, and, since it is read before GTK is initialized, it avoids |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
35 window flicker on resizing. |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
36 |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
37 It is normally not useful to change without recompiling XEmacs.") |
462 | 38 |
39 (defvar gtk-command-switch-alist | |
40 '( | |
41 ;; GNOME Options | |
42 ("--disable-sound" . nil) | |
43 ("--enable-sound" . nil) | |
44 ("--espeaker" . t) | |
45 | |
46 ;; GTK Options | |
47 ("--gdk-debug" . t) | |
48 ("--gdk-no-debug" . t) | |
49 ("--display" . t) | |
50 ("--sync" . nil) | |
51 ("--no-xshm" . nil) | |
52 ("--name" . t) | |
53 ("--class" . t) | |
54 ("--gxid_host" . t) | |
55 ("--gxid_port" . t) | |
56 ("--xim-preedit" . t) | |
57 ("--xim-status" . t) | |
58 ("--gtk-debug" . t) | |
59 ("--gtk-no-debug" . t) | |
60 ("--gtk-module" . t) | |
61 | |
62 ;; Glib options | |
63 ("--g-fatal-warnings" . nil) | |
64 | |
65 ;; Session management options | |
66 ("--sm-client-id" . t) | |
67 ("--sm-config-prefix" . t) | |
68 ("--sm-disable" . t) | |
69 ) | |
70 | |
4477
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
71 "An assoc list of command line args that should be in gtk-initial-argv-list. |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
72 This is necessary because GTK and GNOME consider it a fatal error if they |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
73 receive unknown command line arguments (perfectly reasonable). But this |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
74 means that if the user specifies a file name on the command line they will |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
75 be unable to start. So we filter the command line and allow only items in |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
76 this list in. |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
77 |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
78 The CDR of the assoc list is whether it accepts an argument. For the |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
79 moment, all options are in GNU long form.") |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
80 |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
81 (defvar make-device-early-gtk-entry-point-called-p nil |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
82 "Whether `make-device-early-gtk-entry-point' has been called, at least once. |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
83 |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
84 Much of the GTK-specific Lisp init code should only be called the first time |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
85 a GTK device is created; this variable allows for that.") |
462 | 86 |
4477
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
87 (defvar make-device-late-gtk-entry-point-called-p nil |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
88 "Whether `make-device-late-gtk-entry-point' has been called, at least once. |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
89 |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
90 Much of the GTK-specific Lisp init code should only be called the first time |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
91 a GTK device is created; this variable allows for that.") |
462 | 92 |
4477
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
93 (defun make-device-early-gtk-entry-point () |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
94 "Entry point to set up the Lisp environment before GTK device creation." |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
95 (unless make-device-early-gtk-entry-point-called-p |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
96 (setq initial-frame-plist |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
97 (and initial-frame-unmapped-p '(initially-unmapped t)) |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
98 gtk-initial-argv-list |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
99 (cons (car command-line-args) (gtk-filter-arguments)) |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
100 gtk-initial-geometry |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
101 (nth 1 (member "-geometry" command-line-args-left)) |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
102 make-device-early-gtk-entry-point-called-p t) |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
103 (unless vanilla-inhibiting |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
104 (load gtk-early-lisp-options-file t t t)))) |
462 | 105 |
106 (defun gtk-init-handle-geometry (arg) | |
107 "Set up initial geometry info for GTK devices." | |
108 (setq gtk-initial-geometry (pop command-line-args-left))) | |
109 | |
4477
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
110 (defun make-device-late-gtk-entry-point (device) |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
111 "Entry-Point to do any Lisp-level GTK device-specific initialization." |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
112 (gtk-initialize-compose device) |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
113 (unless make-device-late-gtk-entry-point-called-p |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
114 (setq make-device-late-gtk-entry-point-called-p t))) |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
115 |
462 | 116 (defun gtk-filter-arguments () |
117 (let ((accepted nil) | |
118 (rejected nil) | |
119 (todo nil)) | |
120 (setq todo (mapcar (lambda (argdesc) | |
121 (if (cdr argdesc) | |
122 ;; Need to look for --foo=bar | |
123 (concat "^" (car argdesc) "=") | |
124 ;; Just a simple arg | |
125 (concat "^" (regexp-quote (car argdesc)) "$"))) | |
126 gtk-command-switch-alist)) | |
127 | |
128 (while command-line-args-left | |
129 (if (catch 'found | |
130 (mapc (lambda (r) | |
131 (if (string-match r (car command-line-args-left)) | |
132 (throw 'found t))) todo) | |
133 (mapc (lambda (argdesc) | |
134 (if (cdr argdesc) | |
135 ;; This time we only care about argument items | |
136 ;; that take an argument. We'll check to see if | |
137 ;; someone used --foo bar instead of --foo=bar | |
138 (if (string-match (concat "^" (car argdesc) "$") (car command-line-args-left)) | |
139 ;; Yup! Need to push | |
140 (progn | |
141 (push (pop command-line-args-left) accepted) | |
142 (throw 'found t))))) | |
143 gtk-command-switch-alist) | |
144 nil) | |
145 (push (pop command-line-args-left) accepted) | |
146 (push (pop command-line-args-left) rejected))) | |
147 (setq command-line-args-left (nreverse rejected)) | |
148 (nreverse accepted))) | |
149 | |
150 (push '("-geometry" . gtk-init-handle-geometry) command-switch-alist) | |
151 | |
152 ;;; Stuff to get compose keys working on GTK | |
153 (eval-when-compile | |
4477
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
154 (defmacro gtk-define-dead-key (key map device) |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
155 `(when (gtk-keysym-on-keyboard-p ',key device) |
462 | 156 (define-key function-key-map [,key] ',map)))) |
157 | |
4477
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
158 (defun gtk-initialize-compose (device) |
462 | 159 "Enable compose processing" |
160 (autoload 'compose-map "gtk-compose" nil t 'keymap) | |
161 (autoload 'compose-acute-map "gtk-compose" nil t 'keymap) | |
162 (autoload 'compose-grave-map "gtk-compose" nil t 'keymap) | |
163 (autoload 'compose-cedilla-map "gtk-compose" nil t 'keymap) | |
164 (autoload 'compose-diaeresis-map "gtk-compose" nil t 'keymap) | |
165 (autoload 'compose-circumflex-map "gtk-compose" nil t 'keymap) | |
166 (autoload 'compose-tilde-map "gtk-compose" nil t 'keymap) | |
167 | |
4477
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
168 (when (gtk-keysym-on-keyboard-p 'multi-key device) |
462 | 169 (define-key function-key-map [multi-key] 'compose-map)) |
170 | |
171 ;; The dead keys might really be called just about anything, depending | |
172 ;; on the vendor. MIT thinks that the prefixes are "SunFA_", "D", and | |
173 ;; "hpmute_" for Sun, DEC, and HP respectively. However, OpenWindows 3 | |
174 ;; thinks that the prefixes are "SunXK_FA_", "DXK_", and "hpXK_mute_". | |
175 ;; And HP (who don't mention Sun and DEC at all) use "XK_mute_". | |
176 ;; Go figure. | |
177 | |
178 ;; Presumably if someone is running OpenWindows, they won't be using | |
179 ;; the DEC or HP keysyms, but if they are defined then that is possible, | |
180 ;; so in that case we accept them all. | |
181 | |
182 ;; If things seem not to be working, you might want to check your | |
183 ;; /usr/lib/X11/XKeysymDB file to see if your vendor has an equally | |
184 ;; mixed up view of what these keys should be called. | |
185 | |
186 ;; Canonical names: | |
4477
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
187 (gtk-define-dead-key acute compose-acute-map device) |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
188 (gtk-define-dead-key grave compose-grave-map device) |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
189 (gtk-define-dead-key cedilla compose-cedilla-map device) |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
190 (gtk-define-dead-key diaeresis compose-diaeresis-map device) |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
191 (gtk-define-dead-key circumflex compose-circumflex-map device) |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
192 (gtk-define-dead-key tilde compose-tilde-map device) |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
193 (gtk-define-dead-key degree compose-ring-map device) |
462 | 194 |
195 ;; Sun according to MIT: | |
4477
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
196 (gtk-define-dead-key SunFA_Acute compose-acute-map device) |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
197 (gtk-define-dead-key SunFA_Grave compose-grave-map device) |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
198 (gtk-define-dead-key SunFA_Cedilla compose-cedilla-map device) |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
199 (gtk-define-dead-key SunFA_Diaeresis compose-diaeresis-map device) |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
200 (gtk-define-dead-key SunFA_Circum compose-circumflex-map device) |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
201 (gtk-define-dead-key SunFA_Tilde compose-tilde-map device) |
462 | 202 |
203 ;; Sun according to OpenWindows 2: | |
4477
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
204 (gtk-define-dead-key Dead_Grave compose-grave-map device) |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
205 (gtk-define-dead-key Dead_Circum compose-circumflex-map device) |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
206 (gtk-define-dead-key Dead_Tilde compose-tilde-map device) |
462 | 207 |
208 ;; Sun according to OpenWindows 3: | |
4477
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
209 (gtk-define-dead-key SunXK_FA_Acute compose-acute-map device) |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
210 (gtk-define-dead-key SunXK_FA_Grave compose-grave-map device) |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
211 (gtk-define-dead-key SunXK_FA_Cedilla compose-cedilla-map device) |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
212 (gtk-define-dead-key SunXK_FA_Diaeresis compose-diaeresis-map device) |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
213 (gtk-define-dead-key SunXK_FA_Circum compose-circumflex-map device) |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
214 (gtk-define-dead-key SunXK_FA_Tilde compose-tilde-map device) |
462 | 215 |
216 ;; DEC according to MIT: | |
4477
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
217 (gtk-define-dead-key Dacute_accent compose-acute-map device) |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
218 (gtk-define-dead-key Dgrave_accent compose-grave-map device) |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
219 (gtk-define-dead-key Dcedilla_accent compose-cedilla-map device) |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
220 (gtk-define-dead-key Dcircumflex_accent compose-circumflex-map device) |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
221 (gtk-define-dead-key Dtilde compose-tilde-map device) |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
222 (gtk-define-dead-key Dring_accent compose-ring-map device) |
462 | 223 |
224 ;; DEC according to OpenWindows 3: | |
4477
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
225 (gtk-define-dead-key DXK_acute_accent compose-acute-map device) |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
226 (gtk-define-dead-key DXK_grave_accent compose-grave-map device) |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
227 (gtk-define-dead-key DXK_cedilla_accent compose-cedilla-map device) |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
228 (gtk-define-dead-key DXK_circumflex_accent compose-circumflex-map device) |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
229 (gtk-define-dead-key DXK_tilde compose-tilde-map device) |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
230 (gtk-define-dead-key DXK_ring_accent compose-ring-map device) |
462 | 231 |
232 ;; HP according to MIT: | |
4477
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
233 (gtk-define-dead-key hpmute_acute compose-acute-map device) |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
234 (gtk-define-dead-key hpmute_grave compose-grave-map device) |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
235 (gtk-define-dead-key hpmute_diaeresis compose-diaeresis-map device) |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
236 (gtk-define-dead-key hpmute_asciicircum compose-circumflex-map device) |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
237 (gtk-define-dead-key hpmute_asciitilde compose-tilde-map device) |
462 | 238 |
239 ;; Empirically discovered on Linux XFree86 MetroX: | |
4477
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
240 (gtk-define-dead-key usldead_acute compose-acute-map device) |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
241 (gtk-define-dead-key usldead_grave compose-grave-map device) |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
242 (gtk-define-dead-key usldead_diaeresis compose-diaeresis-map device) |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
243 (gtk-define-dead-key usldead_asciicircum compose-circumflex-map device) |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
244 (gtk-define-dead-key usldead_asciitilde compose-tilde-map device) |
462 | 245 |
246 ;; HP according to OpenWindows 3: | |
4477
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
247 (gtk-define-dead-key hpXK_mute_acute compose-acute-map device) |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
248 (gtk-define-dead-key hpXK_mute_grave compose-grave-map device) |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
249 (gtk-define-dead-key hpXK_mute_diaeresis compose-diaeresis-map device) |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
250 (gtk-define-dead-key hpXK_mute_asciicircum compose-circumflex-map device) |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
251 (gtk-define-dead-key hpXK_mute_asciitilde compose-tilde-map device) |
462 | 252 |
253 ;; HP according to HP-UX 8.0: | |
4477
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
254 (gtk-define-dead-key XK_mute_acute compose-acute-map device) |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
255 (gtk-define-dead-key XK_mute_grave compose-grave-map device) |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
256 (gtk-define-dead-key XK_mute_diaeresis compose-diaeresis-map device) |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
257 (gtk-define-dead-key XK_mute_asciicircum compose-circumflex-map device) |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
258 (gtk-define-dead-key XK_mute_asciitilde compose-tilde-map device) |
462 | 259 |
260 ;; Xfree86 seems to use lower case and a hyphen | |
4477
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
261 (gtk-define-dead-key dead-acute compose-acute-map device) |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
262 (gtk-define-dead-key dead-grave compose-grave-map device) |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
263 (gtk-define-dead-key dead-cedilla compose-cedilla-map device) |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
264 (gtk-define-dead-key dead-diaeresis compose-diaeresis-map device) |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
265 (gtk-define-dead-key dead-circum compose-circumflex-map device) |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
266 (gtk-define-dead-key dead-circumflex compose-circumflex-map device) |
e34711681f30
Don't determine whether to call general device-type code at startup,
Aidan Kehoe <kehoea@parhasard.net>
parents:
4380
diff
changeset
|
267 (gtk-define-dead-key dead-tilde compose-tilde-map device)) |
462 | 268 |