Commit graph

38 commits

Author SHA1 Message Date
Jan Djärv
95ec60bcbf * toolbar/tool-bar.el (tool-bar-setup): Tool bar item dired uses
icon diropen.  New tool bar item find-file-existing uses icon open.
* diropen.pbm diropen.xpm: New files.
2004-11-02 07:56:08 +00:00
Jan Djärv
aa8a805e6e Moved to lc-*.xpm 2004-06-09 21:56:21 +00:00
Jan Djärv
968d61278d Better documentation. 2004-06-08 17:53:11 +00:00
Jan Djärv
cf5458238d * toolbar/tool-bar.el (tool-bar-local-item)
(tool-bar-local-item-from-menu): Try to use icons with fewer colors
  if display-color-cells is 256 or less.
2004-06-08 17:47:52 +00:00
Jan Djärv
0928a1d825 * toolbar/tool-bar.el (tool-bar-setup): Use lookup-key for
cut/copy/paste in case menu-bar-enable-clipboard is in effect.
2004-05-03 21:48:21 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
Stefan Monnier
03a8bf7ddd (tool-bar-add-item-from-menu): Make sure to change the global tool-bar-map. 2002-07-16 22:46:09 +00:00
Richard M. Stallman
02d709c0e5 Comment change. 2002-06-20 21:35:38 +00:00
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
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
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
Eli Zaretskii
b28e72df6e Fix a typo. 2000-10-11 14:11:47 +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
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
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
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