aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Rumney2007-05-15 23:01:38 +0000
committerJason Rumney2007-05-15 23:01:38 +0000
commit2dc8b986833d0f03026dd91549ef39908d380b54 (patch)
tree98b72e5dee8bb600f85d2159caf96e12f2f5d6f8 /src
parenta032a9a827736cda2681d639bc11bcc8ed6dcc7d (diff)
downloademacs-2dc8b986833d0f03026dd91549ef39908d380b54.tar.gz
emacs-2dc8b986833d0f03026dd91549ef39908d380b54.zip
(x_set_tool_bar_lines): Don't use updating_frame.
(Fx_create_frame): Set terminal and ref count. (Fx_open_connection): Remove window-system check.
Diffstat (limited to 'src')
-rw-r--r--src/w32fns.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/w32fns.c b/src/w32fns.c
index 8cac4ea2376..89637284a39 100644
--- a/src/w32fns.c
+++ b/src/w32fns.c
@@ -1816,10 +1816,8 @@ x_set_tool_bar_lines (f, value, oldval)
1816 below the menu bar. */ 1816 below the menu bar. */
1817 if (FRAME_W32_WINDOW (f) && FRAME_TOOL_BAR_LINES (f) == 0) 1817 if (FRAME_W32_WINDOW (f) && FRAME_TOOL_BAR_LINES (f) == 0)
1818 { 1818 {
1819 updating_frame = f; 1819 clear_frame (f);
1820 clear_frame ();
1821 clear_current_matrices (f); 1820 clear_current_matrices (f);
1822 updating_frame = NULL;
1823 } 1821 }
1824 1822
1825 /* If the tool bar gets smaller, the internal border below it 1823 /* If the tool bar gets smaller, the internal border below it
@@ -4215,6 +4213,9 @@ This function is an internal primitive--use `make-frame' instead. */)
4215 /* By default, make scrollbars the system standard width. */ 4213 /* By default, make scrollbars the system standard width. */
4216 FRAME_CONFIG_SCROLL_BAR_WIDTH (f) = GetSystemMetrics (SM_CXVSCROLL); 4214 FRAME_CONFIG_SCROLL_BAR_WIDTH (f) = GetSystemMetrics (SM_CXVSCROLL);
4217 4215
4216 f->terminal = dpyinfo->terminal;
4217 f->terminal->reference_count++;
4218
4218 f->output_method = output_w32; 4219 f->output_method = output_w32;
4219 f->output_data.w32 = 4220 f->output_data.w32 =
4220 (struct w32_output *) xmalloc (sizeof (struct w32_output)); 4221 (struct w32_output *) xmalloc (sizeof (struct w32_output));
@@ -6703,8 +6704,10 @@ terminate Emacs if we can't open the connection. */)
6703 if (! NILP (xrm_string)) 6704 if (! NILP (xrm_string))
6704 CHECK_STRING (xrm_string); 6705 CHECK_STRING (xrm_string);
6705 6706
6707#if 0
6706 if (! EQ (Vwindow_system, intern ("w32"))) 6708 if (! EQ (Vwindow_system, intern ("w32")))
6707 error ("Not using Microsoft Windows"); 6709 error ("Not using Microsoft Windows");
6710#endif
6708 6711
6709 /* Allow color mapping to be defined externally; first look in user's 6712 /* Allow color mapping to be defined externally; first look in user's
6710 HOME directory, then in Emacs etc dir for a file called rgb.txt. */ 6713 HOME directory, then in Emacs etc dir for a file called rgb.txt. */