209
|
1 ;;; x-toolbar.el -- Runtime initialization of XEmacs toolbar
|
|
2
|
|
3 ;; Copyright (C) 1997 Free Software Foundation, Inc.
|
|
4 ;; Copyright (C) 1994 Andy Piper <andyp@parallax.demon.co.uk>
|
|
5 ;; Copyright (C) 1995 Board of Trustees, University of Illinois
|
|
6 ;; Copyright (C) 1996 Ben Wing <wing@666.com>
|
|
7
|
|
8 ;; Maintainer: XEmacs development team
|
|
9 ;; Keywords: frames, dumped
|
|
10
|
|
11 ;; This file is part of XEmacs.
|
|
12
|
|
13 ;; XEmacs is free software; you can redistribute it and/or modify it
|
|
14 ;; under the terms of the GNU General Public License as published by
|
|
15 ;; the Free Software Foundation; either version 2, or (at your option)
|
|
16 ;; any later version.
|
|
17
|
|
18 ;; XEmacs is distributed in the hope that it will be useful, but
|
|
19 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
20 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
21 ;; General Public License for more details.
|
|
22
|
|
23 ;; You should have received a copy of the GNU General Public License
|
|
24 ;; along with XEmacs; see the file COPYING. If not, write to the
|
|
25 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
26 ;; Boston, MA 02111-1307, USA.
|
|
27
|
|
28 ;;; Synched up: Not in FSF
|
|
29
|
|
30 ;;; Commentary:
|
|
31
|
|
32 ;; This file is dumped with XEmacs (when X and toolbar support is compiled in).
|
|
33
|
|
34 ;; Miscellaneous toolbar functions, useful for users to redefine, in
|
|
35 ;; order to get different behaviour.
|
|
36
|
|
37 ;;; Code:
|
|
38
|
219
|
39 ;; Suppress warning message from bytecompiler
|
209
|
40 (eval-when-compile
|
221
|
41 (defvar pending-delete-mode))
|
209
|
42
|
|
43 (defgroup toolbar nil
|
|
44 "Configure XEmacs Toolbar functions and properties"
|
|
45 :group 'environment)
|
|
46
|
|
47
|
|
48 (defun toolbar-not-configured ()
|
221
|
49 (interactive)
|
|
50 ;; Note: we don't use `susbtitute-command-keys' here, because
|
|
51 ;; Customize is bound to `C-h C' by default, and that binding is not
|
|
52 ;; familiar to people. This is more descriptive.
|
|
53 (error
|
|
54 "Configure the item via `M-x customize RET toolbar RET'"))
|
209
|
55
|
|
56 (defcustom toolbar-open-function 'find-file
|
|
57 "*Function to call when the open icon is selected."
|
|
58 :type '(radio (function-item find-file)
|
|
59 (function :tag "Other"))
|
|
60 :group 'toolbar)
|
|
61
|
|
62 (defun toolbar-open ()
|
|
63 (interactive)
|
|
64 (call-interactively toolbar-open-function))
|
|
65
|
|
66 (defcustom toolbar-dired-function 'dired
|
|
67 "*Function to call when the dired icon is selected."
|
|
68 :type '(radio (function-item dired)
|
|
69 (function :tag "Other"))
|
|
70 :group 'toolbar)
|
|
71
|
|
72 (defun toolbar-dired ()
|
|
73 (interactive)
|
|
74 (call-interactively toolbar-dired-function))
|
|
75
|
|
76 (defcustom toolbar-save-function 'save-buffer
|
|
77 "*Function to call when the save icon is selected."
|
|
78 :type '(radio (function-item save-buffer)
|
|
79 (function :tag "Other"))
|
|
80 :group 'toolbar)
|
|
81
|
|
82 (defun toolbar-save ()
|
|
83 (interactive)
|
|
84 (call-interactively toolbar-save-function))
|
|
85
|
|
86 (defcustom toolbar-print-function 'lpr-buffer
|
|
87 "*Function to call when the print icon is selected."
|
|
88 :type '(radio (function-item lpr-buffer)
|
|
89 (function :tag "Other"))
|
|
90 :group 'toolbar)
|
|
91
|
|
92 (defun toolbar-print ()
|
|
93 (interactive)
|
|
94 (call-interactively toolbar-print-function))
|
|
95
|
|
96 (defcustom toolbar-cut-function 'x-kill-primary-selection
|
|
97 "*Function to call when the cut icon is selected."
|
|
98 :type '(radio (function-item x-kill-primary-selection)
|
|
99 (function :tag "Other"))
|
|
100 :group 'toolbar)
|
|
101
|
|
102 (defun toolbar-cut ()
|
|
103 (interactive)
|
|
104 (call-interactively toolbar-cut-function))
|
|
105
|
|
106 (defcustom toolbar-copy-function 'x-copy-primary-selection
|
|
107 "*Function to call when the copy icon is selected."
|
|
108 :type '(radio (function-item x-copy-primary-selection)
|
|
109 (function :tag "Other"))
|
|
110 :group 'toolbar)
|
|
111
|
|
112 (defun toolbar-copy ()
|
|
113 (interactive)
|
|
114 (call-interactively toolbar-copy-function))
|
|
115
|
|
116 (defcustom toolbar-paste-function 'x-yank-clipboard-selection
|
|
117 "*Function to call when the paste icon is selected."
|
|
118 :type '(radio (function-item x-yank-clipboard-selection)
|
|
119 (function :tag "Other"))
|
|
120 :group 'toolbar)
|
|
121
|
|
122 (defun toolbar-paste ()
|
|
123 (interactive)
|
|
124 ;; This horrible kludge is for pending-delete to work correctly.
|
221
|
125 (and (boundp 'pending-delete-mode)
|
|
126 pending-delete-mode
|
209
|
127 (let ((this-command toolbar-paste-function))
|
|
128 (pending-delete-pre-hook)))
|
|
129 (call-interactively toolbar-paste-function))
|
|
130
|
|
131 (defcustom toolbar-undo-function 'undo
|
|
132 "*Function to call when the undo icon is selected."
|
|
133 :type '(radio (function-item undo)
|
|
134 (function :tag "Other"))
|
|
135 :group 'toolbar)
|
|
136
|
|
137 (defun toolbar-undo ()
|
|
138 (interactive)
|
|
139 (call-interactively toolbar-undo-function))
|
|
140
|
|
141 (defcustom toolbar-replace-function 'query-replace
|
|
142 "*Function to call when the replace icon is selected."
|
|
143 :type '(radio (function-item query-replace)
|
|
144 (function :tag "Other"))
|
|
145 :group 'toolbar)
|
|
146
|
|
147 (defun toolbar-replace ()
|
|
148 (interactive)
|
|
149 (call-interactively toolbar-replace-function))
|
|
150
|
|
151 ;;
|
|
152 ;; toolbar ispell variables and defuns
|
|
153 ;;
|
|
154
|
|
155 (defun toolbar-ispell-internal ()
|
|
156 (interactive)
|
221
|
157 (if (region-active-p)
|
|
158 (ispell-region (region-beginning) (region-end))
|
|
159 (ispell-buffer)))
|
209
|
160
|
|
161 (defcustom toolbar-ispell-function 'toolbar-ispell-internal
|
|
162 "*Function to call when the ispell icon is selected."
|
|
163 :type '(radio (function-item toolbar-ispell-internal)
|
|
164 (function :tag "Other"))
|
|
165 :group 'toolbar)
|
|
166
|
|
167 (defun toolbar-ispell ()
|
|
168 "Intelligently spell the region or buffer."
|
|
169 (interactive)
|
|
170 (call-interactively toolbar-ispell-function))
|
|
171
|
|
172 ;;
|
|
173 ;; toolbar mail variables and defuns
|
|
174 ;;
|
|
175
|
|
176 ;; This used to be a macro that expanded its arguments to a form that
|
|
177 ;; called `call-process'. With the advent of customize, it's better
|
|
178 ;; to have it as a defun, to make customization easier.
|
|
179 (defun toolbar-external (process &rest args)
|
|
180 (interactive)
|
|
181 (apply 'call-process process nil 0 nil args))
|
|
182
|
|
183 (defcustom toolbar-mail-commands-alist
|
|
184 `((not-configured . toolbar-not-configured)
|
|
185 (vm . vm)
|
|
186 (gnus . gnus-no-server)
|
|
187 (rmail . rmail)
|
|
188 (mh . mh-rmail)
|
|
189 (pine . (toolbar-external "xterm" "-e" "pine")) ; *gag*
|
|
190 (elm . (toolbar-external "xterm" "-e" "elm"))
|
|
191 (mutt . (toolbar-external "xterm" "-e" "mutt"))
|
|
192 (exmh . (toolbar-external "exmh"))
|
|
193 (netscape . (toolbar-external "netscape" "mailbox:")))
|
|
194 "*Alist of mail readers and their commands.
|
|
195 The car of each alist element is the mail reader, and the cdr is the form
|
|
196 used to start it."
|
|
197 :type '(repeat (cons :format "%v"
|
|
198 (symbol :tag "Mailer") (function :tag "Start with")))
|
|
199 :group 'toolbar)
|
|
200
|
|
201 (defcustom toolbar-mail-reader 'not-configured
|
|
202 "*Mail reader toolbar will invoke.
|
|
203 The legal values are the keys from `toolbar-mail-command-alist', which
|
|
204 should be used to add new mail readers.
|
|
205 Mail readers known by default are vm, gnus, rmail, mh, pine, elm,
|
|
206 mutt, exmh and netscape."
|
|
207 :type '(choice (const :tag "Not Configured" not-configured)
|
|
208 (const vm) (const gnus) (const rmail) (const mh)
|
|
209 (const pine) (const elm) (const mutt) (const exmh)
|
|
210 (const netscape)
|
|
211 (symbol :tag "Other"
|
|
212 :validate (lambda (wid)
|
|
213 (if (assq (widget-value wid)
|
|
214 toolbar-mail-commands-alist)
|
|
215 nil
|
|
216 (widget-put wid :error
|
|
217 "Unknown mail reader")
|
|
218 wid))))
|
|
219 :group 'toolbar)
|
|
220
|
|
221
|
|
222 (defun toolbar-mail ()
|
|
223 "Run mail in a separate frame."
|
|
224 (interactive)
|
215
|
225 (let ((command (cdr (assq toolbar-mail-reader toolbar-mail-commands-alist))))
|
221
|
226 (or command
|
209
|
227 (error "Uknown mail reader %s" toolbar-mail-reader))
|
215
|
228 (if (symbolp command)
|
|
229 (call-interactively command)
|
|
230 (eval command))))
|
209
|
231
|
|
232 ;;
|
|
233 ;; toolbar info variables and defuns
|
|
234 ;;
|
|
235
|
221
|
236 (defcustom toolbar-info-use-separate-frame t
|
|
237 "*Whether Info is invoked in a separate frame."
|
|
238 :type 'boolean
|
|
239 :group 'toolbar)
|
|
240
|
|
241 (defcustom toolbar-info-frame-plist
|
|
242 ;; Info pages are 80 characters wide, so it makes a good default.
|
|
243 `(width 80 ,@(let ((h (plist-get default-frame-plist 'height)))
|
|
244 (and h `(height ,h))))
|
|
245 "*The properties of the frame in which news is displayed."
|
|
246 :type 'plist
|
|
247 :group 'info)
|
|
248
|
|
249 (define-obsolete-variable-alias 'Info-frame-plist
|
|
250 'toolbar-info-frame-plist)
|
|
251
|
209
|
252 (defvar toolbar-info-frame nil
|
|
253 "The frame in which info is displayed.")
|
|
254
|
|
255 (defun toolbar-info ()
|
|
256 "Run info in a separate frame."
|
|
257 (interactive)
|
221
|
258 (when toolbar-info-use-separate-frame
|
|
259 (cond ((or (not toolbar-info-frame)
|
|
260 (not (frame-live-p toolbar-info-frame)))
|
|
261 ;; We used to raise frame here, but it's a bad idea,
|
|
262 ;; because raising is a matter of WM policy. However, we
|
|
263 ;; *must* select it, to ensure that the info buffer goes to
|
|
264 ;; the right frame.
|
|
265 (setq toolbar-info-frame (make-frame toolbar-info-frame-plist))
|
|
266 (select-frame toolbar-info-frame))
|
|
267 (t
|
|
268 ;; However, if the frame already exists, and the user
|
|
269 ;; clicks on info, it's OK to raise it.
|
|
270 (select-frame toolbar-info-frame)
|
|
271 (raise-frame toolbar-info-frame)))
|
|
272 (when (frame-iconified-p toolbar-info-frame)
|
|
273 (deiconify-frame toolbar-info-frame)))
|
209
|
274 (info))
|
|
275
|
|
276 ;;
|
|
277 ;; toolbar debug variables and defuns
|
|
278 ;;
|
|
279
|
|
280 (defun toolbar-debug ()
|
|
281 (interactive)
|
|
282 (if (featurep 'eos-debugger)
|
|
283 (call-interactively 'eos::start-debugger)
|
|
284 (require 'gdbsrc)
|
|
285 (call-interactively 'gdbsrc)))
|
|
286
|
|
287 (defvar compile-command)
|
221
|
288 (defvar toolbar-compile-already-run nil)
|
209
|
289
|
|
290 (defun toolbar-compile ()
|
|
291 "Run compile without having to touch the keyboard."
|
|
292 (interactive)
|
|
293 (require 'compile)
|
221
|
294 (if toolbar-compile-already-run
|
|
295 (compile compile-command)
|
|
296 (setq toolbar-compile-already-run t)
|
|
297 (popup-dialog-box
|
|
298 `(,(concat "Compile:\n " compile-command)
|
|
299 ["Compile" (compile compile-command) t]
|
|
300 ["Edit command" compile t]
|
|
301 nil
|
|
302 ["Cancel" (message "Quit") t]))))
|
209
|
303
|
|
304 ;;
|
|
305 ;; toolbar news variables and defuns
|
|
306 ;;
|
|
307
|
|
308 (defcustom toolbar-news-commands-alist
|
|
309 `((not-configured . toolbar-not-configured)
|
|
310 (gnus . toolbar-gnus) ; M-x all-hail-gnus
|
|
311 (rn . (toolbar-external "xterm" "-e" "rn"))
|
|
312 (nn . (toolbar-external "xterm" "-e" "nn"))
|
|
313 (trn . (toolbar-external "xterm" "-e" "trn"))
|
|
314 (xrn . (toolbar-external "xrn"))
|
|
315 (slrn . (toolbar-external "xterm" "-e" "slrn"))
|
|
316 (pine . (toolbar-external "xterm" "-e" "pine")) ; *gag*
|
|
317 (tin . (toolbar-external "xterm" "-e" "tin")) ; *gag*
|
|
318 (netscape . (toolbar-external "netscape" "news:")))
|
|
319 "*Alist of news readers and their commands.
|
|
320 The car of each alist element the pair is the news reader, and the cdr
|
|
321 is the form used to start it."
|
|
322 :type '(repeat (cons :format "%v"
|
|
323 (symbol :tag "Reader") (sexp :tag "Start with")))
|
|
324 :group 'toolbar)
|
|
325
|
|
326 (defcustom toolbar-news-reader 'not-configured
|
|
327 "*News reader toolbar will invoke.
|
|
328 The legal values are the keys from `toolbar-news-command-alist', which should
|
|
329 be used to add new news readers.
|
|
330 Newsreaders known by default are gnus, rn, nn, trn, xrn, slrn, pine
|
|
331 and netscape."
|
|
332 :type '(choice (const :tag "Not Configured" not-configured)
|
|
333 (const gnus) (const rn) (const nn) (const trn)
|
|
334 (const xrn) (const slrn) (const pine) (const tin)
|
|
335 (const netscape)
|
|
336 (symbol :tag "Other"
|
|
337 :validate (lambda (wid)
|
|
338 (if (assq (widget-value wid)
|
|
339 toolbar-news-commands-alist)
|
|
340 nil
|
|
341 (widget-put wid :error
|
|
342 "Unknown news reader")
|
|
343 wid))))
|
|
344 :group 'toolbar)
|
|
345
|
|
346 (defcustom toolbar-news-use-separate-frame t
|
|
347 "*Whether Gnus is invoked in a separate frame."
|
|
348 :type 'boolean
|
|
349 :group 'toolbar)
|
|
350
|
|
351 (defvar toolbar-news-frame nil
|
|
352 "The frame in which news is displayed.")
|
|
353
|
221
|
354 (defcustom toolbar-news-frame-plist nil
|
217
|
355 "*The properties of the frame in which news is displayed."
|
221
|
356 :type 'plist
|
217
|
357 :group 'toolbar)
|
209
|
358
|
221
|
359 (define-obsolete-variable-alias 'toolbar-news-frame-properties
|
|
360 'toolbar-news-frame-plist)
|
|
361
|
209
|
362 (defun toolbar-gnus ()
|
|
363 "Run Gnus in a separate frame."
|
|
364 (interactive)
|
217
|
365 (if (not toolbar-news-use-separate-frame)
|
|
366 (gnus)
|
|
367 (unless (frame-live-p toolbar-news-frame)
|
|
368 (setq toolbar-news-frame (make-frame toolbar-news-frame-properties))
|
|
369 (add-hook 'gnus-exit-gnus-hook
|
|
370 (lambda ()
|
|
371 (when (frame-live-p toolbar-news-frame)
|
|
372 (if (cdr (frame-list))
|
|
373 (delete-frame toolbar-news-frame))
|
|
374 (setq toolbar-news-frame nil))))
|
|
375 (select-frame toolbar-news-frame)
|
|
376 (gnus))
|
|
377 (when (framep toolbar-news-frame)
|
|
378 (when (frame-iconified-p toolbar-news-frame)
|
|
379 (deiconify-frame toolbar-news-frame))
|
|
380 (select-frame toolbar-news-frame)
|
|
381 (raise-frame toolbar-news-frame))))
|
209
|
382
|
|
383 (defun toolbar-news ()
|
221
|
384 "Run News."
|
209
|
385 (interactive)
|
|
386 (let ((command (assq toolbar-news-reader toolbar-news-commands-alist)))
|
221
|
387 (or command
|
|
388 (error "Uknown news reader %s" toolbar-news-reader))
|
|
389 (if (symbolp command)
|
|
390 (call-interactively command)
|
|
391 (eval command))))
|
209
|
392
|
|
393 (defvar toolbar-last-win-icon nil "A `last-win' icon set.")
|
|
394 (defvar toolbar-next-win-icon nil "A `next-win' icon set.")
|
|
395 (defvar toolbar-file-icon nil "A `file' icon set.")
|
|
396 (defvar toolbar-folder-icon nil "A `folder' icon set")
|
|
397 (defvar toolbar-disk-icon nil "A `disk' icon set.")
|
|
398 (defvar toolbar-printer-icon nil "A `printer' icon set.")
|
|
399 (defvar toolbar-cut-icon nil "A `cut' icon set.")
|
|
400 (defvar toolbar-copy-icon nil "A `copy' icon set.")
|
|
401 (defvar toolbar-paste-icon nil "A `paste' icon set.")
|
|
402 (defvar toolbar-undo-icon nil "An `undo' icon set.")
|
|
403 (defvar toolbar-spell-icon nil "A `spell' icon set.")
|
|
404 (defvar toolbar-replace-icon nil "A `replace' icon set.")
|
|
405 (defvar toolbar-mail-icon nil "A `mail' icon set.")
|
|
406 (defvar toolbar-info-icon nil "An `info' icon set.")
|
|
407 (defvar toolbar-compile-icon nil "A `compile' icon set.")
|
|
408 (defvar toolbar-debug-icon nil "A `debugger' icon set.")
|
|
409 (defvar toolbar-news-icon nil "A `news' icon set.")
|
|
410
|
|
411 ;;; each entry maps a variable to the prefix used.
|
|
412
|
|
413 (defvar init-x-toolbar-list
|
|
414 '((toolbar-last-win-icon . "last-win")
|
|
415 (toolbar-next-win-icon . "next-win")
|
|
416 (toolbar-file-icon . "file")
|
|
417 (toolbar-folder-icon . "folder")
|
|
418 (toolbar-disk-icon . "disk")
|
|
419 (toolbar-printer-icon . "printer")
|
|
420 (toolbar-cut-icon . "cut")
|
|
421 (toolbar-copy-icon . "copy")
|
|
422 (toolbar-paste-icon . "paste")
|
|
423 (toolbar-undo-icon . "undo")
|
|
424 (toolbar-spell-icon . "spell")
|
|
425 (toolbar-replace-icon . "replace")
|
|
426 (toolbar-mail-icon . "mail")
|
|
427 (toolbar-info-icon . "info-def")
|
|
428 (toolbar-compile-icon . "compile")
|
|
429 (toolbar-debug-icon . "debug")
|
|
430 (toolbar-news-icon . "news")))
|
|
431
|
|
432 (defun init-x-toolbar ()
|
|
433 (toolbar-add-item-data init-x-toolbar-list )
|
|
434 ;; do this now because errors will occur if the icon symbols
|
|
435 ;; are not initted
|
|
436 (set-specifier default-toolbar initial-toolbar-spec))
|
|
437
|
|
438 (defun toolbar-add-item-data ( icon-list &optional icon-dir )
|
|
439 (if (eq icon-dir nil)
|
|
440 (setq icon-dir toolbar-icon-directory))
|
|
441 (mapcar
|
|
442 (lambda (cons)
|
|
443 (let ((prefix (expand-file-name (cdr cons) icon-dir)))
|
|
444 (set (car cons)
|
|
445 (if (featurep 'xpm)
|
|
446 (toolbar-make-button-list
|
|
447 (concat prefix "-up.xpm")
|
|
448 nil
|
|
449 (concat prefix "-xx.xpm")
|
|
450 (concat prefix "-cap-up.xpm")
|
|
451 nil
|
|
452 (concat prefix "-cap-xx.xpm"))
|
|
453 (toolbar-make-button-list
|
|
454 (concat prefix "-up.xbm")
|
|
455 (concat prefix "-dn.xbm")
|
|
456 (concat prefix "-xx.xbm")
|
|
457 )))))
|
|
458 icon-list )
|
|
459 )
|
|
460
|
|
461 (defvar initial-toolbar-spec
|
|
462 '(;;[toolbar-last-win-icon pop-window-configuration
|
|
463 ;;(frame-property (selected-frame)
|
|
464 ;; 'window-config-stack) t "Most recent window config"]
|
|
465 ;; #### Illicit knowledge?
|
|
466 ;; #### These don't work right - not consistent!
|
|
467 ;; I don't know what's wrong; perhaps `selected-frame' is wrong
|
|
468 ;; sometimes when this is evaluated. Note that I even tried to
|
|
469 ;; kludge-fix this by calls to `set-specifier-dirty-flag' in
|
|
470 ;; pop-window-configuration and such.
|
|
471
|
|
472 ;;[toolbar-next-win-icon unpop-window-configuration
|
|
473 ;;(frame-property (selected-frame)
|
|
474 ;; 'window-config-unpop-stack) t "Undo \"Most recent window config\""]
|
|
475 ;; #### Illicit knowledge?
|
|
476
|
|
477 [toolbar-file-icon toolbar-open t "Open a file"]
|
|
478 [toolbar-folder-icon toolbar-dired t "View directory"]
|
|
479 [toolbar-disk-icon toolbar-save t "Save buffer"]
|
|
480 [toolbar-printer-icon toolbar-print t "Print buffer"]
|
|
481 [toolbar-cut-icon toolbar-cut t "Kill region"]
|
|
482 [toolbar-copy-icon toolbar-copy t "Copy region"]
|
|
483 [toolbar-paste-icon toolbar-paste t "Paste from clipboard"]
|
|
484 [toolbar-undo-icon toolbar-undo t "Undo edit"]
|
|
485 [toolbar-spell-icon toolbar-ispell t "Spellcheck"]
|
|
486 [toolbar-replace-icon toolbar-replace t "Replace text"]
|
|
487 [toolbar-mail-icon toolbar-mail t "Mail"]
|
|
488 [toolbar-info-icon toolbar-info t "Information"]
|
|
489 [toolbar-compile-icon toolbar-compile t "Compile"]
|
|
490 [toolbar-debug-icon toolbar-debug t "Debug"]
|
|
491 [toolbar-news-icon toolbar-news t "News"]
|
|
492 )
|
|
493 "The initial toolbar for a buffer.")
|
|
494
|
|
495 (defun x-init-toolbar-from-resources (locale)
|
|
496 (x-init-specifier-from-resources
|
|
497 top-toolbar-height 'natnum locale
|
|
498 '("topToolBarHeight" . "TopToolBarHeight"))
|
|
499 (x-init-specifier-from-resources
|
|
500 bottom-toolbar-height 'natnum locale
|
|
501 '("bottomToolBarHeight" . "BottomToolBarHeight"))
|
|
502 (x-init-specifier-from-resources
|
|
503 left-toolbar-width 'natnum locale
|
|
504 '("leftToolBarWidth" . "LeftToolBarWidth"))
|
|
505 (x-init-specifier-from-resources
|
|
506 right-toolbar-width 'natnum locale
|
215
|
507 '("rightToolBarWidth" . "RightToolBarWidth"))
|
|
508 (x-init-specifier-from-resources
|
|
509 top-toolbar-border-width 'natnum locale
|
|
510 '("topToolBarBorderWidth" . "TopToolBarBorderWidth"))
|
|
511 (x-init-specifier-from-resources
|
|
512 bottom-toolbar-border-width 'natnum locale
|
|
513 '("bottomToolBarBorderWidth" . "BottomToolBarBorderWidth"))
|
|
514 (x-init-specifier-from-resources
|
|
515 left-toolbar-border-width 'natnum locale
|
|
516 '("leftToolBarBorderWidth" . "LeftToolBarBorderWidth"))
|
|
517 (x-init-specifier-from-resources
|
|
518 right-toolbar-border-width 'natnum locale
|
|
519 '("rightToolBarBorderWidth" . "RightToolBarBorderWidth")))
|
209
|
520
|
|
521 ;;; x-toolbar.el ends here
|