Commit graph

51 commits

Author SHA1 Message Date
Richard M. Stallman
2fab432898 (tool-bar-local-item-from-menu): Handle both cases: when the menu item
has cached info and when it doesn't.
2002-05-05 03:06:58 +00:00
Richard M. Stallman
97c2194784 (tool-bar-local-item-from-menu):
Fix parts in construction of `menu-item' item at end.
2002-04-19 00:09:20 +00:00
Richard M. Stallman
ca1b34c8c1 (tool-bar-local-item): Renamed from tool-bar-add-item, and new arg MAP.
(tool-bar-add-item): Now calls tool-bar-local-item.
(tool-bar-local-item-from-menu): Renamed from
tool-bar-add-item-from-menu, and new arg IN-MAP.
(tool-bar-add-item-from-menu): Now calls tool-bar-local-item-from-menu.
2002-04-01 16:28:16 +00:00
Juanma Barranquero
b011dcb0ba Fix typo in commentary. 2002-03-26 08:48:51 +00:00
Per Abrahamsen
929e848701 2002-02-21 Per Abrahamsen <abraham@dina.kvl.dk>
* toolbar/tool-bar.el (tool-bar-mode): Revert the :init-value to
      nil, and then explicitly set the standard-value to t.
2002-02-21 09:39:39 +00:00
Per Abrahamsen
9b2d1d408c 2002-02-19 Per Abrahamsen <abraham@dina.kvl.dk>
* facemenu.el (describe-text-mode-map): Removed bootstrap kludge.

	* toolbar/tool-bar.el (tool-bar-mode): Made the standard value t.
	* menu-bar.el (menu-bar-mode): Ditto.
2002-02-19 10:30:30 +00:00
Per Abrahamsen
4f9b906041 2002-02-11 Per Abrahamsen <abraham@dina.kvl.dk>
* toolbar/tool-bar.el (tool-bar-mode): Removed standard value.
	* menu-bar.el (menu-bar-mode): Ditto.
	* cus-edit.el (customize-mark-to-save): Always save variables
	without a standard value.

	* menu-bar.el (menu-bar-make-toggle): Made it aware of customize.
	(menu-bar-options-save): Ditto.
	(menu-bar-showhide-menu): Ditto.
	(menu-bar-options-menu): Ditto.
	(menu-bar-scroll-bar-right, menu-bar-scroll-bar-left,
	menu-bar-scroll-bar-none): Removed.
	(menu-bar-showhide-scroll-bar-menu): Use customize aware lambda
	expressions instead.

	* cus-edit.el (customize-set-value): Return value.
	(customize-set-variable): Ditto.
	(customize-save-variable): Ditto.
	(customize-set-variable): Load dependencies before setting value.
        (custom-load-symbol): Autoload it.
	(customize-mark-as-set): New function.
2002-02-11 16:47:55 +00:00
Eli Zaretskii
ef32aa0283 (tool-bar-mode): Make it a no-op if images
aren't supported.  This avoids the annoying grey strip drawn by
the Windows version instead of the missing tool bar.
2001-08-30 06:52:19 +00:00
Gerd Moellmann
98a8938cdd (tool-bar-add-item-from-menu): Handle
old-style menu definitions.
2001-08-06 10:41:52 +00:00
Eli Zaretskii
196de866ae (tool-bar-add-item-from-menu, tool-bar-add-item): Don't call image-related
primitives if the display doesn't support images.
2001-07-17 12:59:14 +00:00
Pavel Janík
e8af40eed4 Some fixes to follow coding conventions. 2001-07-16 12:23:00 +00:00
Gerd Moellmann
1d9f4dc126 Cleaned up.
From Luis Fernandes <elf@ee.ryerson.ca>.
2001-07-09 10:54:37 +00:00
Eli Zaretskii
7a03d9cdcf (tool-bar-setup): Remove the EXIT button. 2001-06-21 12:48:03 +00:00
Dave Love
5ec176363c (tool-bar-setup): Don't suppress write-file
and save-buffer if buffer-file-name non-nil.  From rms.
2001-03-10 13:20:47 +00:00
Eli Zaretskii
cb4aae0475 (tool-bar-add-item): Doc fix. 2001-01-31 13:23:12 +00:00
Gerd Moellmann
1e2f58742e Use the same colors as exit.xpm. 2001-01-11 13:37:03 +00:00
Gerd Moellmann
3fae165ccb (tool-bar-add-item-from-menu): Use
face-attribute instead of face-foreground and face-background.
(tool-bar-add-item): Likewise, and handle unspecified colors.
2000-11-29 19:21:47 +00:00
Gerd Moellmann
a81fc5106e (tool-bar-mode): Doc fix. 2000-11-29 15:29:45 +00:00
Gerd Moellmann
7e6369044d (tool-bar-add-item-from-menu): Handle case
that foreground and/or background colors of the face `tool-bar'
are unspecified.
2000-11-27 11:28:24 +00:00
Dave Love
c129b5ef1e comment fix 2000-11-17 17:50:48 +00:00
Stefan Monnier
ff49cf9a7b (tool-bar-mode): Drop unneeded positional args. 2000-11-03 23:06:40 +00:00
Dave Love
3b6d80f1ed (tool-bar-add-item-from-menu)
(tool-bar-add-item): Set foreground and background for XBM icons.
2000-10-23 18:00:51 +00:00
Miles Bader
cf1e7b12ba Re-convert from full-color version (using the Gimp) to eliminate
dithering artifacts.
2000-10-16 08:42:22 +00:00
Dave Love
8d74fbd262 Retouch. 2000-10-13 12:28:56 +00:00
Gerd Moellmann
db46018979 Reduce to max. 8 colors (mogrify -colorspace transparent -colors 8). 2000-10-13 10:39:33 +00:00
Dave Love
9a45f9afa0 Reduce colour requirements to 25 overall. (Probably wants
revisiting from the originals to reduce further.)
2000-10-11 18:05:19 +00:00
Eli Zaretskii
b28e72df6e Fix a typo. 2000-10-11 14:11:47 +00:00
Dave Love
20a6e76aa2 *** empty log message *** 2000-10-10 13:04:09 +00:00
Dave Love
99bd82f657 Fix transparent index. 2000-10-10 13:03:22 +00:00
Dave Love
d646c82853 *** empty log message *** 2000-10-10 09:31:50 +00:00
Dave Love
34e86ea33b (tool-bar-add-item)
(tool-bar-add-item-from-menu): Don't favour XPM icons on mono
display.
2000-10-10 09:31:04 +00:00
Dave Love
3885aa01bd Make b/g transparent. 2000-10-09 20:19:11 +00:00
Dave Love
c2156508df (tool-bar-add-item-from-menu): Add autoload cookie. 2000-10-09 17:56:11 +00:00
Dave Love
adf7d3a874 (tool-bar-mode): Check whether tool-bar-map
has been initialized before calling tool-bar-setup.
2000-10-09 11:12:06 +00:00
Miles Bader
29e0814b58 Flip to put highlight in correct place.
Correct image size.
2000-10-09 01:03:32 +00:00
Miles Bader
682e57092d Correct image size. 2000-10-09 01:01:02 +00:00
Dave Love
a30ed6ace6 *** empty log message *** 2000-10-08 15:52:38 +00:00
Dave Love
9a4b8870fe (tool-bar-map): Define it empty.
(global-map): Bind [tool-bar] to a filtered map.
(tool-bar-add-item): Remove MAP arg.  Allow PBM icons.
(tool-bar-add-item-from-menu): Use tool-bar-map, not tb-map.
Allow PBM icons.
(tool-bar-setup): Adjust calls of tool-bar-add-item.
2000-10-08 15:29:52 +00:00
Dave Love
ebd4825d4a (tool-bar-setup): New function.
(tool-bar-mode): Use it.
2000-10-04 09:36:30 +00:00
Miles Bader
c5785b73db (tool-bar-help): Use `mouse-pixel-position'. 2000-09-27 04:20:25 +00:00
Gerd Moellmann
cd3b81be39 (tool-bar-help): New function. 2000-09-26 09:35:27 +00:00
Miles Bader
ddba99ad14 Reapply Gerd's change from 2000-09-18, which seems to have gotten lost:
(tool-bar-add-item-from-menu): Like in toolbar-add-item, if image
  doesn't have a mask add a `:mask heuristic'.
2000-09-20 07:18:35 +00:00
Dave Love
532cb34d50 renamed 2000-09-19 17:37:42 +00:00
Dave Love
ec7f4585a2 Renamed from toolbar.el. Change `toolbar'
to `tool-bar' generally in symbols.  Make some items invisible in
`special' major modes.
(tool-bar-add-item-from-menu): Renamed from
toolbar-like-menu-item.  Add arg PROPS.
2000-09-19 17:36:49 +00:00
Gerd Moellmann
72e28eeb5a (toolbar-like-menu-item): Like in
toolbar-add-item, if image doesn't have a mask add a `:mask
heuristic'.
2000-09-18 12:25:36 +00:00
Gerd Moellmann
2b26ac776d (toolbar-add-item): Use the same image
specification if or if not tool-bar item contains an `:enabled'
property.
2000-09-15 21:00:32 +00:00
Gerd Moellmann
fc68490910 (toolbar-add-item): Use image-mask-p. 2000-09-15 15:21:42 +00:00
Gerd Moellmann
b5d618ba93 (toolbar-add-item): Use `:mask heuristic'
instead of `:heuristic-mask t'.
2000-09-15 11:48:44 +00:00
Dave Love
896160ba96 (toolbar-like-menu-item): Doc fix. 2000-09-14 13:17:02 +00:00
Dave Love
a5d8b3ddbc New. (Gnome icon by tigert.) 2000-09-14 11:56:36 +00:00