aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1994-04-14 17:21:38 +0000
committerRichard M. Stallman1994-04-14 17:21:38 +0000
commit90eb101970bd8052cd5465c161858fcd4429c052 (patch)
tree1dc96d906f4a0de8bf10908ca0dd8edff421b4aa
parent4e8d35499af38afb69094586770d3710689061fa (diff)
downloademacs-90eb101970bd8052cd5465c161858fcd4429c052.tar.gz
emacs-90eb101970bd8052cd5465c161858fcd4429c052.zip
(Fx_list_fonts): Error if non-X frame used.
(x_window): Don't call initialize_frame_menubar if no menu bar. (Fx_create_frame): Default menu-bar-lines parm before calling x_window.
-rw-r--r--src/xfns.c16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/xfns.c b/src/xfns.c
index 2b3be77fb57..319a97abb02 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -1765,7 +1765,7 @@ x_window (f, window_prompting, minibuffer_only)
1765 1765
1766 f->display.x->column_widget = pane_widget; 1766 f->display.x->column_widget = pane_widget;
1767 1767
1768 if (!minibuffer_only) 1768 if (!minibuffer_only && FRAME_MENU_BAR_LINES (f) > 0)
1769 initialize_frame_menubar (f); 1769 initialize_frame_menubar (f);
1770 1770
1771 /* mappedWhenManaged to false tells to the paned window to not map/unmap 1771 /* mappedWhenManaged to false tells to the paned window to not map/unmap
@@ -2198,6 +2198,9 @@ be shared by the new frame.")
2198 x_default_parameter (f, parms, Qborder_color, build_string ("black"), 2198 x_default_parameter (f, parms, Qborder_color, build_string ("black"),
2199 "borderColor", "BorderColor", string); 2199 "borderColor", "BorderColor", string);
2200 2200
2201 x_default_parameter (f, parms, Qmenu_bar_lines, make_number (0),
2202 "menuBarLines", "MenuBarLines", number);
2203
2201 f->display.x->parent_desc = ROOT_WINDOW; 2204 f->display.x->parent_desc = ROOT_WINDOW;
2202 window_prompting = x_figure_window_size (f, parms); 2205 window_prompting = x_figure_window_size (f, parms);
2203 2206
@@ -2230,9 +2233,6 @@ be shared by the new frame.")
2230 f->height = f->width = 0; 2233 f->height = f->width = 0;
2231 change_frame_size (f, height, width, 1, 0); 2234 change_frame_size (f, height, width, 1, 0);
2232 2235
2233 x_default_parameter (f, parms, Qmenu_bar_lines, make_number (0),
2234 "menuBarLines", "MenuBarLines", number);
2235
2236/* With the toolkit, the geometry management is done in x_window. */ 2236/* With the toolkit, the geometry management is done in x_window. */
2237#ifndef USE_X_TOOLKIT 2237#ifndef USE_X_TOOLKIT
2238 tem0 = x_get_arg (parms, Qleft, 0, 0, number); 2238 tem0 = x_get_arg (parms, Qleft, 0, 0, number);
@@ -2671,7 +2671,13 @@ even if they match PATTERN and FACE.")
2671 else 2671 else
2672 { 2672 {
2673 FRAME_PTR f = NILP (frame) ? selected_frame : XFRAME (frame); 2673 FRAME_PTR f = NILP (frame) ? selected_frame : XFRAME (frame);
2674 int face_id = face_name_id_number (f, face); 2674 int face_id;
2675
2676 /* Don't die if we get called with a terminal frame. */
2677 if (! FRAME_X_P (f))
2678 error ("non-X frame used in `x-list-fonts'");
2679
2680 face_id = face_name_id_number (f, face);
2675 2681
2676 if (face_id < 0 || face_id >= FRAME_N_PARAM_FACES (f) 2682 if (face_id < 0 || face_id >= FRAME_N_PARAM_FACES (f)
2677 || FRAME_PARAM_FACES (f) [face_id] == 0) 2683 || FRAME_PARAM_FACES (f) [face_id] == 0)