# HG changeset patch # User Jason Rumney # Date 971982771 0 # Node ID 092d2df2a6c39c3f87307dbd2c9aa65f47782479 # Parent 3bdd8b54535228c36b7e737d991c79e500be7722 (Fx_create_frame): Don't bother calling face-set-after-frame-default since the caller does it for us anyway. Clean up calls to x_get_arg to be consistent with X. diff -r 3bdd8b545352 -r 092d2df2a6c3 src/w32fns.c --- a/src/w32fns.c Thu Oct 19 19:06:38 2000 +0000 +++ b/src/w32fns.c Thu Oct 19 19:12:51 2000 +0000 @@ -5087,7 +5087,8 @@ it to make_frame_without_minibuffer. */ frame = Qnil; GCPRO4 (parms, parent, name, frame); - tem = w32_get_arg (parms, Qminibuffer, 0, 0, RES_TYPE_SYMBOL); + tem = w32_get_arg (parms, Qminibuffer, "minibuffer", "Minibuffer", + RES_TYPE_SYMBOL); if (EQ (tem, Qnone) || NILP (tem)) f = make_frame_without_minibuffer (Qnil, kb, display); else if (EQ (tem, Qonly)) @@ -5128,7 +5129,7 @@ if (!NILP (parent)) { - f->output_data.w32->parent_desc = (Window) parent; + f->output_data.w32->parent_desc = (Window) XFASTINT (parent); f->output_data.w32->explicit_parent = 1; } else @@ -5186,7 +5187,7 @@ } x_default_parameter (f, parms, Qborder_width, make_number (2), - "borderwidth", "BorderWidth", RES_TYPE_NUMBER); + "borderWidth", "BorderWidth", RES_TYPE_NUMBER); /* This defaults to 2 in order to match xterm. We recognize either internalBorderWidth or internalBorder (which is what xterm calls it). */ @@ -5195,16 +5196,16 @@ Lisp_Object value; value = w32_get_arg (parms, Qinternal_border_width, - "internalBorder", "BorderWidth", RES_TYPE_NUMBER); + "internalBorder", "InternalBorder", RES_TYPE_NUMBER); if (! EQ (value, Qunbound)) parms = Fcons (Fcons (Qinternal_border_width, value), parms); } /* Default internalBorderWidth to 0 on Windows to match other programs. */ x_default_parameter (f, parms, Qinternal_border_width, make_number (0), - "internalBorderWidth", "BorderWidth", RES_TYPE_NUMBER); - x_default_parameter (f, parms, Qvertical_scroll_bars, Qt, - "verticalScrollBars", "ScrollBars", RES_TYPE_BOOLEAN); + "internalBorderWidth", "InternalBorder", RES_TYPE_NUMBER); + x_default_parameter (f, parms, Qvertical_scroll_bars, Qright, + "verticalScrollBars", "ScrollBars", RES_TYPE_SYMBOL); /* Also do the stuff which must be set before the window exists. */ x_default_parameter (f, parms, Qforeground_color, build_string ("black"), @@ -5303,9 +5304,6 @@ SET_FRAME_WIDTH (f, 0); change_frame_size (f, height, width, 1, 0, 0); - /* Set up faces after all frame parameters are known. */ - call1 (Qface_set_after_frame_default, frame); - /* Tell the server what size and position, etc, we want, and how badly we want them. This should be done after we have the menu bar so that its size can be taken into account. */