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)
|
239
|
157 (cond
|
|
158 ((region-active-p) (ispell-region (region-beginning) (region-end)))
|
|
159 ((eq major-mode 'mail-mode) (ispell-message))
|
|
160 ((eq major-mode 'message-mode) (ispell-message))
|
|
161 (t (ispell-buffer))))
|
209
|
162
|
|
163 (defcustom toolbar-ispell-function 'toolbar-ispell-internal
|
|
164 "*Function to call when the ispell icon is selected."
|
|
165 :type '(radio (function-item toolbar-ispell-internal)
|
|
166 (function :tag "Other"))
|
|
167 :group 'toolbar)
|
|
168
|
|
169 (defun toolbar-ispell ()
|
|
170 "Intelligently spell the region or buffer."
|
|
171 (interactive)
|
|
172 (call-interactively toolbar-ispell-function))
|
|
173
|
|
174 ;;
|
|
175 ;; toolbar mail variables and defuns
|
|
176 ;;
|
|
177
|
|
178 ;; This used to be a macro that expanded its arguments to a form that
|
|
179 ;; called `call-process'. With the advent of customize, it's better
|
|
180 ;; to have it as a defun, to make customization easier.
|
|
181 (defun toolbar-external (process &rest args)
|
|
182 (interactive)
|
|
183 (apply 'call-process process nil 0 nil args))
|
|
184
|
|
185 (defcustom toolbar-mail-commands-alist
|
|
186 `((not-configured . toolbar-not-configured)
|
|
187 (vm . vm)
|
|
188 (gnus . gnus-no-server)
|
|
189 (rmail . rmail)
|
|
190 (mh . mh-rmail)
|
|
191 (pine . (toolbar-external "xterm" "-e" "pine")) ; *gag*
|
|
192 (elm . (toolbar-external "xterm" "-e" "elm"))
|
|
193 (mutt . (toolbar-external "xterm" "-e" "mutt"))
|
|
194 (exmh . (toolbar-external "exmh"))
|
239
|
195 (netscape . (toolbar-external "netscape" "mailbox:"))
|
|
196 (send . mail))
|
209
|
197 "*Alist of mail readers and their commands.
|
|
198 The car of each alist element is the mail reader, and the cdr is the form
|
|
199 used to start it."
|
|
200 :type '(repeat (cons :format "%v"
|
|
201 (symbol :tag "Mailer") (function :tag "Start with")))
|
|
202 :group 'toolbar)
|
|
203
|
|
204 (defcustom toolbar-mail-reader 'not-configured
|
|
205 "*Mail reader toolbar will invoke.
|
|
206 The legal values are the keys from `toolbar-mail-command-alist', which
|
|
207 should be used to add new mail readers.
|
|
208 Mail readers known by default are vm, gnus, rmail, mh, pine, elm,
|
239
|
209 mutt, exmh, netscape and send."
|
209
|
210 :type '(choice (const :tag "Not Configured" not-configured)
|
|
211 (const vm) (const gnus) (const rmail) (const mh)
|
|
212 (const pine) (const elm) (const mutt) (const exmh)
|
|
213 (const netscape)
|
239
|
214 (const send)
|
209
|
215 (symbol :tag "Other"
|
|
216 :validate (lambda (wid)
|
|
217 (if (assq (widget-value wid)
|
|
218 toolbar-mail-commands-alist)
|
|
219 nil
|
|
220 (widget-put wid :error
|
|
221 "Unknown mail reader")
|
|
222 wid))))
|
|
223 :group 'toolbar)
|
|
224
|
|
225
|
|
226 (defun toolbar-mail ()
|
|
227 "Run mail in a separate frame."
|
|
228 (interactive)
|
215
|
229 (let ((command (cdr (assq toolbar-mail-reader toolbar-mail-commands-alist))))
|
221
|
230 (or command
|
209
|
231 (error "Uknown mail reader %s" toolbar-mail-reader))
|
215
|
232 (if (symbolp command)
|
|
233 (call-interactively command)
|
|
234 (eval command))))
|
209
|
235
|
|
236 ;;
|
|
237 ;; toolbar info variables and defuns
|
|
238 ;;
|
|
239
|
221
|
240 (defcustom toolbar-info-use-separate-frame t
|
|
241 "*Whether Info is invoked in a separate frame."
|
|
242 :type 'boolean
|
|
243 :group 'toolbar)
|
|
244
|
|
245 (defcustom toolbar-info-frame-plist
|
|
246 ;; Info pages are 80 characters wide, so it makes a good default.
|
|
247 `(width 80 ,@(let ((h (plist-get default-frame-plist 'height)))
|
|
248 (and h `(height ,h))))
|
|
249 "*The properties of the frame in which news is displayed."
|
|
250 :type 'plist
|
|
251 :group 'info)
|
|
252
|
|
253 (define-obsolete-variable-alias 'Info-frame-plist
|
|
254 'toolbar-info-frame-plist)
|
|
255
|
209
|
256 (defvar toolbar-info-frame nil
|
|
257 "The frame in which info is displayed.")
|
|
258
|
|
259 (defun toolbar-info ()
|
|
260 "Run info in a separate frame."
|
|
261 (interactive)
|
221
|
262 (when toolbar-info-use-separate-frame
|
|
263 (cond ((or (not toolbar-info-frame)
|
|
264 (not (frame-live-p toolbar-info-frame)))
|
|
265 ;; We used to raise frame here, but it's a bad idea,
|
|
266 ;; because raising is a matter of WM policy. However, we
|
|
267 ;; *must* select it, to ensure that the info buffer goes to
|
|
268 ;; the right frame.
|
|
269 (setq toolbar-info-frame (make-frame toolbar-info-frame-plist))
|
|
270 (select-frame toolbar-info-frame))
|
|
271 (t
|
|
272 ;; However, if the frame already exists, and the user
|
|
273 ;; clicks on info, it's OK to raise it.
|
|
274 (select-frame toolbar-info-frame)
|
|
275 (raise-frame toolbar-info-frame)))
|
|
276 (when (frame-iconified-p toolbar-info-frame)
|
|
277 (deiconify-frame toolbar-info-frame)))
|
209
|
278 (info))
|
|
279
|
|
280 ;;
|
|
281 ;; toolbar debug variables and defuns
|
|
282 ;;
|
|
283
|
|
284 (defun toolbar-debug ()
|
|
285 (interactive)
|
|
286 (if (featurep 'eos-debugger)
|
|
287 (call-interactively 'eos::start-debugger)
|
|
288 (require 'gdbsrc)
|
|
289 (call-interactively 'gdbsrc)))
|
|
290
|
|
291 (defvar compile-command)
|
221
|
292 (defvar toolbar-compile-already-run nil)
|
209
|
293
|
|
294 (defun toolbar-compile ()
|
|
295 "Run compile without having to touch the keyboard."
|
|
296 (interactive)
|
|
297 (require 'compile)
|
221
|
298 (if toolbar-compile-already-run
|
|
299 (compile compile-command)
|
|
300 (setq toolbar-compile-already-run t)
|
|
301 (popup-dialog-box
|
|
302 `(,(concat "Compile:\n " compile-command)
|
|
303 ["Compile" (compile compile-command) t]
|
|
304 ["Edit command" compile t]
|
|
305 nil
|
|
306 ["Cancel" (message "Quit") t]))))
|
209
|
307
|
|
308 ;;
|
|
309 ;; toolbar news variables and defuns
|
|
310 ;;
|
|
311
|
|
312 (defcustom toolbar-news-commands-alist
|
|
313 `((not-configured . toolbar-not-configured)
|
|
314 (gnus . toolbar-gnus) ; M-x all-hail-gnus
|
|
315 (rn . (toolbar-external "xterm" "-e" "rn"))
|
|
316 (nn . (toolbar-external "xterm" "-e" "nn"))
|
|
317 (trn . (toolbar-external "xterm" "-e" "trn"))
|
|
318 (xrn . (toolbar-external "xrn"))
|
|
319 (slrn . (toolbar-external "xterm" "-e" "slrn"))
|
|
320 (pine . (toolbar-external "xterm" "-e" "pine")) ; *gag*
|
|
321 (tin . (toolbar-external "xterm" "-e" "tin")) ; *gag*
|
|
322 (netscape . (toolbar-external "netscape" "news:")))
|
|
323 "*Alist of news readers and their commands.
|
|
324 The car of each alist element the pair is the news reader, and the cdr
|
|
325 is the form used to start it."
|
|
326 :type '(repeat (cons :format "%v"
|
|
327 (symbol :tag "Reader") (sexp :tag "Start with")))
|
|
328 :group 'toolbar)
|
|
329
|
|
330 (defcustom toolbar-news-reader 'not-configured
|
|
331 "*News reader toolbar will invoke.
|
|
332 The legal values are the keys from `toolbar-news-command-alist', which should
|
|
333 be used to add new news readers.
|
|
334 Newsreaders known by default are gnus, rn, nn, trn, xrn, slrn, pine
|
|
335 and netscape."
|
|
336 :type '(choice (const :tag "Not Configured" not-configured)
|
|
337 (const gnus) (const rn) (const nn) (const trn)
|
|
338 (const xrn) (const slrn) (const pine) (const tin)
|
|
339 (const netscape)
|
|
340 (symbol :tag "Other"
|
|
341 :validate (lambda (wid)
|
|
342 (if (assq (widget-value wid)
|
|
343 toolbar-news-commands-alist)
|
|
344 nil
|
|
345 (widget-put wid :error
|
|
346 "Unknown news reader")
|
|
347 wid))))
|
|
348 :group 'toolbar)
|
|
349
|
|
350 (defcustom toolbar-news-use-separate-frame t
|
|
351 "*Whether Gnus is invoked in a separate frame."
|
|
352 :type 'boolean
|
|
353 :group 'toolbar)
|
|
354
|
|
355 (defvar toolbar-news-frame nil
|
|
356 "The frame in which news is displayed.")
|
|
357
|
221
|
358 (defcustom toolbar-news-frame-plist nil
|
217
|
359 "*The properties of the frame in which news is displayed."
|
221
|
360 :type 'plist
|
217
|
361 :group 'toolbar)
|
209
|
362
|
221
|
363 (define-obsolete-variable-alias 'toolbar-news-frame-properties
|
|
364 'toolbar-news-frame-plist)
|
|
365
|
209
|
366 (defun toolbar-gnus ()
|
|
367 "Run Gnus in a separate frame."
|
|
368 (interactive)
|
217
|
369 (if (not toolbar-news-use-separate-frame)
|
|
370 (gnus)
|
|
371 (unless (frame-live-p toolbar-news-frame)
|
|
372 (setq toolbar-news-frame (make-frame toolbar-news-frame-properties))
|
|
373 (add-hook 'gnus-exit-gnus-hook
|
|
374 (lambda ()
|
|
375 (when (frame-live-p toolbar-news-frame)
|
|
376 (if (cdr (frame-list))
|
|
377 (delete-frame toolbar-news-frame))
|
|
378 (setq toolbar-news-frame nil))))
|
|
379 (select-frame toolbar-news-frame)
|
|
380 (gnus))
|
|
381 (when (framep toolbar-news-frame)
|
|
382 (when (frame-iconified-p toolbar-news-frame)
|
|
383 (deiconify-frame toolbar-news-frame))
|
|
384 (select-frame toolbar-news-frame)
|
|
385 (raise-frame toolbar-news-frame))))
|
209
|
386
|
|
387 (defun toolbar-news ()
|
221
|
388 "Run News."
|
209
|
389 (interactive)
|
223
|
390 (let ((command (cdr-safe
|
|
391 (assq toolbar-news-reader toolbar-news-commands-alist))))
|
221
|
392 (or command
|
223
|
393 (error "Unkown news reader %s" toolbar-news-reader))
|
221
|
394 (if (symbolp command)
|
|
395 (call-interactively command)
|
|
396 (eval command))))
|
209
|
397
|
|
398 (defvar toolbar-last-win-icon nil "A `last-win' icon set.")
|
|
399 (defvar toolbar-next-win-icon nil "A `next-win' icon set.")
|
|
400 (defvar toolbar-file-icon nil "A `file' icon set.")
|
|
401 (defvar toolbar-folder-icon nil "A `folder' icon set")
|
|
402 (defvar toolbar-disk-icon nil "A `disk' icon set.")
|
|
403 (defvar toolbar-printer-icon nil "A `printer' icon set.")
|
|
404 (defvar toolbar-cut-icon nil "A `cut' icon set.")
|
|
405 (defvar toolbar-copy-icon nil "A `copy' icon set.")
|
|
406 (defvar toolbar-paste-icon nil "A `paste' icon set.")
|
|
407 (defvar toolbar-undo-icon nil "An `undo' icon set.")
|
|
408 (defvar toolbar-spell-icon nil "A `spell' icon set.")
|
|
409 (defvar toolbar-replace-icon nil "A `replace' icon set.")
|
|
410 (defvar toolbar-mail-icon nil "A `mail' icon set.")
|
|
411 (defvar toolbar-info-icon nil "An `info' icon set.")
|
|
412 (defvar toolbar-compile-icon nil "A `compile' icon set.")
|
|
413 (defvar toolbar-debug-icon nil "A `debugger' icon set.")
|
|
414 (defvar toolbar-news-icon nil "A `news' icon set.")
|
|
415
|
|
416 ;;; each entry maps a variable to the prefix used.
|
|
417
|
|
418 (defvar init-x-toolbar-list
|
|
419 '((toolbar-last-win-icon . "last-win")
|
|
420 (toolbar-next-win-icon . "next-win")
|
|
421 (toolbar-file-icon . "file")
|
|
422 (toolbar-folder-icon . "folder")
|
|
423 (toolbar-disk-icon . "disk")
|
|
424 (toolbar-printer-icon . "printer")
|
|
425 (toolbar-cut-icon . "cut")
|
|
426 (toolbar-copy-icon . "copy")
|
|
427 (toolbar-paste-icon . "paste")
|
|
428 (toolbar-undo-icon . "undo")
|
|
429 (toolbar-spell-icon . "spell")
|
|
430 (toolbar-replace-icon . "replace")
|
|
431 (toolbar-mail-icon . "mail")
|
|
432 (toolbar-info-icon . "info-def")
|
|
433 (toolbar-compile-icon . "compile")
|
|
434 (toolbar-debug-icon . "debug")
|
|
435 (toolbar-news-icon . "news")))
|
|
436
|
|
437 (defun init-x-toolbar ()
|
|
438 (toolbar-add-item-data init-x-toolbar-list )
|
|
439 ;; do this now because errors will occur if the icon symbols
|
|
440 ;; are not initted
|
|
441 (set-specifier default-toolbar initial-toolbar-spec))
|
|
442
|
|
443 (defun toolbar-add-item-data ( icon-list &optional icon-dir )
|
|
444 (if (eq icon-dir nil)
|
|
445 (setq icon-dir toolbar-icon-directory))
|
|
446 (mapcar
|
|
447 (lambda (cons)
|
|
448 (let ((prefix (expand-file-name (cdr cons) icon-dir)))
|
|
449 (set (car cons)
|
|
450 (if (featurep 'xpm)
|
|
451 (toolbar-make-button-list
|
|
452 (concat prefix "-up.xpm")
|
|
453 nil
|
|
454 (concat prefix "-xx.xpm")
|
|
455 (concat prefix "-cap-up.xpm")
|
|
456 nil
|
|
457 (concat prefix "-cap-xx.xpm"))
|
|
458 (toolbar-make-button-list
|
|
459 (concat prefix "-up.xbm")
|
|
460 (concat prefix "-dn.xbm")
|
|
461 (concat prefix "-xx.xbm")
|
|
462 )))))
|
|
463 icon-list )
|
|
464 )
|
|
465
|
|
466 (defvar initial-toolbar-spec
|
|
467 '(;;[toolbar-last-win-icon pop-window-configuration
|
|
468 ;;(frame-property (selected-frame)
|
|
469 ;; 'window-config-stack) t "Most recent window config"]
|
|
470 ;; #### Illicit knowledge?
|
|
471 ;; #### These don't work right - not consistent!
|
|
472 ;; I don't know what's wrong; perhaps `selected-frame' is wrong
|
|
473 ;; sometimes when this is evaluated. Note that I even tried to
|
|
474 ;; kludge-fix this by calls to `set-specifier-dirty-flag' in
|
|
475 ;; pop-window-configuration and such.
|
|
476
|
|
477 ;;[toolbar-next-win-icon unpop-window-configuration
|
|
478 ;;(frame-property (selected-frame)
|
|
479 ;; 'window-config-unpop-stack) t "Undo \"Most recent window config\""]
|
|
480 ;; #### Illicit knowledge?
|
|
481
|
|
482 [toolbar-file-icon toolbar-open t "Open a file"]
|
|
483 [toolbar-folder-icon toolbar-dired t "View directory"]
|
|
484 [toolbar-disk-icon toolbar-save t "Save buffer"]
|
|
485 [toolbar-printer-icon toolbar-print t "Print buffer"]
|
|
486 [toolbar-cut-icon toolbar-cut t "Kill region"]
|
|
487 [toolbar-copy-icon toolbar-copy t "Copy region"]
|
|
488 [toolbar-paste-icon toolbar-paste t "Paste from clipboard"]
|
|
489 [toolbar-undo-icon toolbar-undo t "Undo edit"]
|
|
490 [toolbar-spell-icon toolbar-ispell t "Spellcheck"]
|
|
491 [toolbar-replace-icon toolbar-replace t "Replace text"]
|
|
492 [toolbar-mail-icon toolbar-mail t "Mail"]
|
|
493 [toolbar-info-icon toolbar-info t "Information"]
|
|
494 [toolbar-compile-icon toolbar-compile t "Compile"]
|
|
495 [toolbar-debug-icon toolbar-debug t "Debug"]
|
|
496 [toolbar-news-icon toolbar-news t "News"]
|
|
497 )
|
|
498 "The initial toolbar for a buffer.")
|
|
499
|
|
500 (defun x-init-toolbar-from-resources (locale)
|
|
501 (x-init-specifier-from-resources
|
|
502 top-toolbar-height 'natnum locale
|
|
503 '("topToolBarHeight" . "TopToolBarHeight"))
|
|
504 (x-init-specifier-from-resources
|
|
505 bottom-toolbar-height 'natnum locale
|
|
506 '("bottomToolBarHeight" . "BottomToolBarHeight"))
|
|
507 (x-init-specifier-from-resources
|
|
508 left-toolbar-width 'natnum locale
|
|
509 '("leftToolBarWidth" . "LeftToolBarWidth"))
|
|
510 (x-init-specifier-from-resources
|
|
511 right-toolbar-width 'natnum locale
|
215
|
512 '("rightToolBarWidth" . "RightToolBarWidth"))
|
|
513 (x-init-specifier-from-resources
|
|
514 top-toolbar-border-width 'natnum locale
|
|
515 '("topToolBarBorderWidth" . "TopToolBarBorderWidth"))
|
|
516 (x-init-specifier-from-resources
|
|
517 bottom-toolbar-border-width 'natnum locale
|
|
518 '("bottomToolBarBorderWidth" . "BottomToolBarBorderWidth"))
|
|
519 (x-init-specifier-from-resources
|
|
520 left-toolbar-border-width 'natnum locale
|
|
521 '("leftToolBarBorderWidth" . "LeftToolBarBorderWidth"))
|
|
522 (x-init-specifier-from-resources
|
|
523 right-toolbar-border-width 'natnum locale
|
|
524 '("rightToolBarBorderWidth" . "RightToolBarBorderWidth")))
|
209
|
525
|
|
526 ;;; x-toolbar.el ends here
|