X-Git-Url: http://git.chise.org/gitweb/?p=chise%2Fxemacs-chise.git.1;a=blobdiff_plain;f=src%2Fframe-msw.c;h=3325da7acd9d283f54589f7becc7933bac636373;hp=f7d154ad2ee79d09d0e96a3f0497c36721f66899;hb=35adcaaeafb1fe93eaf00c39b48619e8f188ff3f;hpb=fc475e6669a613cd6d98eb5511c749a23b63c7ac diff --git a/src/frame-msw.c b/src/frame-msw.c index f7d154a..3325da7 100644 --- a/src/frame-msw.c +++ b/src/frame-msw.c @@ -35,6 +35,7 @@ Boston, MA 02111-1307, USA. */ #include "buffer.h" #include "console-msw.h" #include "glyphs-msw.h" +#include "elhash.h" #include "events.h" #include "faces.h" #include "frame.h" @@ -126,10 +127,10 @@ mswindows_init_frame_1 (struct frame *f, Lisp_Object props) FRAME_MSWINDOWS_DATA(f)->ignore_next_lbutton_up = 0; FRAME_MSWINDOWS_DATA(f)->ignore_next_rbutton_up = 0; FRAME_MSWINDOWS_DATA(f)->sizing = 0; - FRAME_MSWINDOWS_MENU_HASHTABLE(f) = Qnil; + FRAME_MSWINDOWS_MENU_HASH_TABLE(f) = Qnil; #ifdef HAVE_TOOLBARS - FRAME_MSWINDOWS_TOOLBAR_HASHTABLE(f) = Fmake_hashtable (make_int (50), - Qequal); + FRAME_MSWINDOWS_TOOLBAR_HASH_TABLE(f) = + make_lisp_hash_table (50, HASH_TABLE_NON_WEAK, HASH_TABLE_EQUAL); #endif /* Will initialize these in WM_SIZE handler. We cannot do it now, @@ -234,8 +235,8 @@ mswindows_after_init_frame (struct frame *f, int first_on_device, frame is created, it will never be displayed, except for hollow border, unless we start pumping messages. Load progress messages show in the bottom of the hollow frame, which is ugly. - We redipsplay the initial frame here, so modeline and root window - backgorund show. + We redisplay the initial frame here, so modeline and root window + background show. */ if (first_on_console) redisplay (); @@ -244,9 +245,9 @@ mswindows_after_init_frame (struct frame *f, int first_on_device, static void mswindows_mark_frame (struct frame *f, void (*markobj) (Lisp_Object)) { - ((markobj) (FRAME_MSWINDOWS_MENU_HASHTABLE (f))); + markobj (FRAME_MSWINDOWS_MENU_HASH_TABLE (f)); #ifdef HAVE_TOOLBARS - ((markobj) (FRAME_MSWINDOWS_TOOLBAR_HASHTABLE (f))); + markobj (FRAME_MSWINDOWS_TOOLBAR_HASH_TABLE (f)); #endif } @@ -322,7 +323,7 @@ mswindows_frame_totally_visible_p (struct frame *f) RECT rc_me, rc_other, rc_temp; HWND hwnd = FRAME_MSWINDOWS_HANDLE(f); - /* We test against not a whole window rectangle, only agaist its + /* We test against not a whole window rectangle, only against its client part. So, if non-client are is covered and client area is not, we return true. */ GetClientRect (hwnd, &rc_me);