diff options
| author | Jan Djärv | 2007-08-31 10:13:35 +0000 |
|---|---|---|
| committer | Jan Djärv | 2007-08-31 10:13:35 +0000 |
| commit | 5cb94d12c18070dbb5d8a3723d4ddf908333dcc2 (patch) | |
| tree | 0e2d3e8883592b951fca7de5d8e3d46277cd9c95 | |
| parent | 4596901f3f22d52ed3fb232dabdbf7f1f78e6630 (diff) | |
| download | emacs-5cb94d12c18070dbb5d8a3723d4ddf908333dcc2.tar.gz emacs-5cb94d12c18070dbb5d8a3723d4ddf908333dcc2.zip | |
(x-gtk-stock-map): Add etc/images to keys.
(x-gtk-map-stock): Use two directory elements when matching
file name.
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/term/x-win.el | 51 |
2 files changed, 32 insertions, 25 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 21084348139..59cedc9e160 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2007-08-31 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> | ||
| 2 | |||
| 3 | * term/x-win.el (x-gtk-stock-map): Add etc/images to keys. | ||
| 4 | (x-gtk-map-stock): Use two directory elements when matching | ||
| 5 | file name. | ||
| 6 | |||
| 1 | 2007-08-31 James Wright <james@chumsley.org> | 7 | 2007-08-31 James Wright <james@chumsley.org> |
| 2 | 8 | ||
| 3 | * eshell/em-unix.el (eshell/info): New function. | 9 | * eshell/em-unix.el (eshell/info): New function. |
diff --git a/lisp/term/x-win.el b/lisp/term/x-win.el index ed0f61a9ef3..de0d99ab3c0 100644 --- a/lisp/term/x-win.el +++ b/lisp/term/x-win.el | |||
| @@ -401,6 +401,7 @@ exists." | |||
| 401 | (defconst x-pointer-ur-angle 148) | 401 | (defconst x-pointer-ur-angle 148) |
| 402 | (defconst x-pointer-watch 150) | 402 | (defconst x-pointer-watch 150) |
| 403 | (defconst x-pointer-xterm 152) | 403 | (defconst x-pointer-xterm 152) |
| 404 | (defconst x-pointer-invisible 255) | ||
| 404 | 405 | ||
| 405 | ;; | 406 | ;; |
| 406 | ;; Available colors | 407 | ;; Available colors |
| @@ -2578,27 +2579,27 @@ order until succeed.") | |||
| 2578 | 2579 | ||
| 2579 | (defcustom x-gtk-stock-map | 2580 | (defcustom x-gtk-stock-map |
| 2580 | '( | 2581 | '( |
| 2581 | ("new" . "gtk-new") | 2582 | ("etc/images/new" . "gtk-new") |
| 2582 | ("open" . "gtk-open") | 2583 | ("etc/images/open" . "gtk-open") |
| 2583 | ("diropen" . "gtk-directory") | 2584 | ("etc/images/diropen" . "gtk-directory") |
| 2584 | ("close" . "gtk-close") | 2585 | ("etc/images/close" . "gtk-close") |
| 2585 | ("save" . "gtk-save") | 2586 | ("etc/images/save" . "gtk-save") |
| 2586 | ("saveas" . "gtk-save-as") | 2587 | ("etc/images/saveas" . "gtk-save-as") |
| 2587 | ("undo" . "gtk-undo") | 2588 | ("etc/images/undo" . "gtk-undo") |
| 2588 | ("cut" . "gtk-cut") | 2589 | ("etc/images/cut" . "gtk-cut") |
| 2589 | ("copy" . "gtk-copy") | 2590 | ("etc/images/copy" . "gtk-copy") |
| 2590 | ("paste" . "gtk-paste") | 2591 | ("etc/images/paste" . "gtk-paste") |
| 2591 | ("search" . "gtk-find") | 2592 | ("etc/images/search" . "gtk-find") |
| 2592 | ("print" . "gtk-print") | 2593 | ("etc/images/print" . "gtk-print") |
| 2593 | ("preferences" . "gtk-preferences") | 2594 | ("etc/images/preferences" . "gtk-preferences") |
| 2594 | ("help" . "gtk-help") | 2595 | ("etc/images/help" . "gtk-help") |
| 2595 | ("left-arrow" . "gtk-go-back") | 2596 | ("etc/images/left-arrow" . "gtk-go-back") |
| 2596 | ("right-arrow" . "gtk-go-forward") | 2597 | ("etc/images/right-arrow" . "gtk-go-forward") |
| 2597 | ("home" . "gtk-home") | 2598 | ("etc/images/home" . "gtk-home") |
| 2598 | ("jump-to" . "gtk-jump-to") | 2599 | ("etc/images/jump-to" . "gtk-jump-to") |
| 2599 | ("index" . "gtk-index") | 2600 | ("etc/images/index" . "gtk-index") |
| 2600 | ("search" . "gtk-find") | 2601 | ("etc/images/search" . "gtk-find") |
| 2601 | ("exit" . "gtk-quit")) | 2602 | ("etc/images/exit" . "gtk-quit")) |
| 2602 | "How icons for tool bars are mapped to Gtk+ stock items. | 2603 | "How icons for tool bars are mapped to Gtk+ stock items. |
| 2603 | Emacs must be compiled with the Gtk+ toolkit for this to have any effect." | 2604 | Emacs must be compiled with the Gtk+ toolkit for this to have any effect." |
| 2604 | :version "23.1" | 2605 | :version "23.1" |
| @@ -2607,10 +2608,10 @@ Emacs must be compiled with the Gtk+ toolkit for this to have any effect." | |||
| 2607 | 2608 | ||
| 2608 | (defun x-gtk-map-stock (file) | 2609 | (defun x-gtk-map-stock (file) |
| 2609 | "Map icon with file name FILE to a Gtk+ stock name, using `x-gtk-stock-map'." | 2610 | "Map icon with file name FILE to a Gtk+ stock name, using `x-gtk-stock-map'." |
| 2610 | (let ((value (and file | 2611 | (let* ((file-sans (file-name-sans-extension file)) |
| 2611 | (assoc-string (file-name-sans-extension | 2612 | (key (and (string-match "/\\([^/]+/[^/]+/[^/]+$\\)" file-sans) |
| 2612 | (file-name-nondirectory file)) | 2613 | (match-string 1 file-sans))) |
| 2613 | x-gtk-stock-map)))) | 2614 | (value (assoc-string (or key file-sans) x-gtk-stock-map))) |
| 2614 | (and value (cdr value)))) | 2615 | (and value (cdr value)))) |
| 2615 | 2616 | ||
| 2616 | ;; arch-tag: f1501302-db8b-4d95-88e3-116697d89f78 | 2617 | ;; arch-tag: f1501302-db8b-4d95-88e3-116697d89f78 |