comparison src/xfns.c @ 25544:693ca9ba497a

Change spelling of `toolbar' to `tool_bar' or `tool-bar'. Likewise for upper-case etc.
author Gerd Moellmann <gerd@gnu.org>
date Sun, 05 Sep 1999 15:49:07 +0000
parents b5dd1bafd001
children 05f27fc24f81
comparison
equal deleted inserted replaced
25543:6289141fa825 25544:693ca9ba497a
18 along with GNU Emacs; see the file COPYING. If not, write to 18 along with GNU Emacs; see the file COPYING. If not, write to
19 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 19 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA. */ 20 Boston, MA 02111-1307, USA. */
21 21
22 /* Image support (XBM, XPM, PBM, JPEG, TIFF, GIF, PNG, GS). tooltips, 22 /* Image support (XBM, XPM, PBM, JPEG, TIFF, GIF, PNG, GS). tooltips,
23 toolbars, busy-cursor, file selection dialog added by Gerd 23 tool-bars, busy-cursor, file selection dialog added by Gerd
24 Moellmann <gerd@gnu.org>. */ 24 Moellmann <gerd@gnu.org>. */
25 25
26 /* Completely rewritten by Richard Stallman. */ 26 /* Completely rewritten by Richard Stallman. */
27 27
28 /* Rewritten for X11 by Joseph Arceneaux */ 28 /* Rewritten for X11 by Joseph Arceneaux */
257 257
258 /* The below are defined in frame.c. */ 258 /* The below are defined in frame.c. */
259 259
260 extern Lisp_Object Qheight, Qminibuffer, Qname, Qonly, Qwidth; 260 extern Lisp_Object Qheight, Qminibuffer, Qname, Qonly, Qwidth;
261 extern Lisp_Object Qunsplittable, Qmenu_bar_lines, Qbuffer_predicate, Qtitle; 261 extern Lisp_Object Qunsplittable, Qmenu_bar_lines, Qbuffer_predicate, Qtitle;
262 extern Lisp_Object Qtoolbar_lines; 262 extern Lisp_Object Qtool_bar_lines;
263 263
264 extern Lisp_Object Vwindow_system_version; 264 extern Lisp_Object Vwindow_system_version;
265 265
266 Lisp_Object Qface_set_after_frame_default; 266 Lisp_Object Qface_set_after_frame_default;
267 267
767 void x_set_visibility P_ ((struct frame *, Lisp_Object, Lisp_Object)); 767 void x_set_visibility P_ ((struct frame *, Lisp_Object, Lisp_Object));
768 void x_set_menu_bar_lines P_ ((struct frame *, Lisp_Object, Lisp_Object)); 768 void x_set_menu_bar_lines P_ ((struct frame *, Lisp_Object, Lisp_Object));
769 void x_set_scroll_bar_width P_ ((struct frame *, Lisp_Object, Lisp_Object)); 769 void x_set_scroll_bar_width P_ ((struct frame *, Lisp_Object, Lisp_Object));
770 void x_set_title P_ ((struct frame *, Lisp_Object, Lisp_Object)); 770 void x_set_title P_ ((struct frame *, Lisp_Object, Lisp_Object));
771 void x_set_unsplittable P_ ((struct frame *, Lisp_Object, Lisp_Object)); 771 void x_set_unsplittable P_ ((struct frame *, Lisp_Object, Lisp_Object));
772 void x_set_toolbar_lines P_ ((struct frame *, Lisp_Object, Lisp_Object)); 772 void x_set_tool_bar_lines P_ ((struct frame *, Lisp_Object, Lisp_Object));
773 void x_set_scroll_bar_foreground P_ ((struct frame *, Lisp_Object, 773 void x_set_scroll_bar_foreground P_ ((struct frame *, Lisp_Object,
774 Lisp_Object)); 774 Lisp_Object));
775 void x_set_scroll_bar_background P_ ((struct frame *, Lisp_Object, 775 void x_set_scroll_bar_background P_ ((struct frame *, Lisp_Object,
776 Lisp_Object)); 776 Lisp_Object));
777 static Lisp_Object x_default_scroll_bar_color_parameter P_ ((struct frame *, 777 static Lisp_Object x_default_scroll_bar_color_parameter P_ ((struct frame *,
801 "scroll-bar-width", x_set_scroll_bar_width, 801 "scroll-bar-width", x_set_scroll_bar_width,
802 "title", x_set_title, 802 "title", x_set_title,
803 "unsplittable", x_set_unsplittable, 803 "unsplittable", x_set_unsplittable,
804 "vertical-scroll-bars", x_set_vertical_scroll_bars, 804 "vertical-scroll-bars", x_set_vertical_scroll_bars,
805 "visibility", x_set_visibility, 805 "visibility", x_set_visibility,
806 "toolbar-lines", x_set_toolbar_lines, 806 "tool-bar-lines", x_set_tool_bar_lines,
807 "scroll-bar-foreground", x_set_scroll_bar_foreground, 807 "scroll-bar-foreground", x_set_scroll_bar_foreground,
808 "scroll-bar-background", x_set_scroll_bar_background, 808 "scroll-bar-background", x_set_scroll_bar_background,
809 "screen-gamma", x_set_screen_gamma 809 "screen-gamma", x_set_screen_gamma
810 }; 810 };
811 811
1982 is the old number of tool bar lines. This function changes the 1982 is the old number of tool bar lines. This function changes the
1983 height of all windows on frame F to match the new tool bar height. 1983 height of all windows on frame F to match the new tool bar height.
1984 The frame's height doesn't change. */ 1984 The frame's height doesn't change. */
1985 1985
1986 void 1986 void
1987 x_set_toolbar_lines (f, value, oldval) 1987 x_set_tool_bar_lines (f, value, oldval)
1988 struct frame *f; 1988 struct frame *f;
1989 Lisp_Object value, oldval; 1989 Lisp_Object value, oldval;
1990 { 1990 {
1991 int delta, nlines; 1991 int delta, nlines;
1992 1992
1997 nlines = 0; 1997 nlines = 0;
1998 1998
1999 /* Make sure we redisplay all windows in this frame. */ 1999 /* Make sure we redisplay all windows in this frame. */
2000 ++windows_or_buffers_changed; 2000 ++windows_or_buffers_changed;
2001 2001
2002 delta = nlines - FRAME_TOOLBAR_LINES (f); 2002 delta = nlines - FRAME_TOOL_BAR_LINES (f);
2003 FRAME_TOOLBAR_LINES (f) = nlines; 2003 FRAME_TOOL_BAR_LINES (f) = nlines;
2004 x_set_menu_bar_lines_1 (FRAME_ROOT_WINDOW (f), delta); 2004 x_set_menu_bar_lines_1 (FRAME_ROOT_WINDOW (f), delta);
2005 adjust_glyphs (f); 2005 adjust_glyphs (f);
2006 } 2006 }
2007 2007
2008 2008
3771 happen. */ 3771 happen. */
3772 init_frame_faces (f); 3772 init_frame_faces (f);
3773 3773
3774 x_default_parameter (f, parms, Qmenu_bar_lines, make_number (1), 3774 x_default_parameter (f, parms, Qmenu_bar_lines, make_number (1),
3775 "menuBar", "MenuBar", RES_TYPE_NUMBER); 3775 "menuBar", "MenuBar", RES_TYPE_NUMBER);
3776 x_default_parameter (f, parms, Qtoolbar_lines, make_number (0), 3776 x_default_parameter (f, parms, Qtool_bar_lines, make_number (0),
3777 "toolBar", "ToolBar", RES_TYPE_NUMBER); 3777 "toolBar", "ToolBar", RES_TYPE_NUMBER);
3778 x_default_parameter (f, parms, Qscroll_bar_width, Qnil, 3778 x_default_parameter (f, parms, Qscroll_bar_width, Qnil,
3779 "scrollBarWidth", "ScrollBarWidth", 3779 "scrollBarWidth", "ScrollBarWidth",
3780 RES_TYPE_NUMBER); 3780 RES_TYPE_NUMBER);
3781 x_default_parameter (f, parms, Qbuffer_predicate, Qnil, 3781 x_default_parameter (f, parms, Qbuffer_predicate, Qnil,
3805 f->output_data.x->size_hint_flags = window_prompting; 3805 f->output_data.x->size_hint_flags = window_prompting;
3806 3806
3807 tem = x_get_arg (dpyinfo, parms, Qunsplittable, 0, 0, RES_TYPE_BOOLEAN); 3807 tem = x_get_arg (dpyinfo, parms, Qunsplittable, 0, 0, RES_TYPE_BOOLEAN);
3808 f->no_split = minibuffer_only || EQ (tem, Qt); 3808 f->no_split = minibuffer_only || EQ (tem, Qt);
3809 3809
3810 /* Create the X widget or window. Add the toolbar height to the 3810 /* Create the X widget or window. Add the tool-bar height to the
3811 initial frame height so that the user gets a text display area of 3811 initial frame height so that the user gets a text display area of
3812 the size he specified with -g or via .Xdefaults. Later changes 3812 the size he specified with -g or via .Xdefaults. Later changes
3813 of the toolbar height don't change the frame size. This is done 3813 of the tool-bar height don't change the frame size. This is done
3814 so that users can create tall Emacs frames without having to 3814 so that users can create tall Emacs frames without having to
3815 guess how tall the toolbar will get. */ 3815 guess how tall the tool-bar will get. */
3816 f->height += FRAME_TOOLBAR_LINES (f); 3816 f->height += FRAME_TOOL_BAR_LINES (f);
3817 3817
3818 #ifdef USE_X_TOOLKIT 3818 #ifdef USE_X_TOOLKIT
3819 x_window (f, window_prompting, minibuffer_only); 3819 x_window (f, window_prompting, minibuffer_only);
3820 #else 3820 #else
3821 x_window (f); 3821 x_window (f);