Gerd Moellmann [Tue, 25 Jan 2000 15:57:26 +0000 (15:57 +0000)]
(toplevel): Include systime.h and atimer.h.
(polling_for_input): Removed because unused.
(input_poll_signal) [POLL_FOR_INPUT]: Removed.
(poll_timer): New variable.
(poll_for_input, poll_for_input_1): New functions.
(start_polling, stop_polling): Rewritten.
Gerd Moellmann [Tue, 25 Jan 2000 15:56:42 +0000 (15:56 +0000)]
(toplevel): Include atimer.h.
(create_process_1): Rewritten.
(create_process): Use atimers instead of alarm.
(wait_reading_process_input) [hpux]: Turn atimers off instead
of turning off SIGALRM.
(wait_reading_process_input): Turn off atimers instead off
calling stop_polling.
Gerd Moellmann [Tue, 25 Jan 2000 15:50:53 +0000 (15:50 +0000)]
(make_menu_in_widget): Don't add XmNpopdownCallback,
add XmNunmapCallback.
(xm_unmap_callback): New function.
(xm_pull_down_callback): Call pre-activate callback only if
parent is the menu bar.
Jason Rumney [Sun, 23 Jan 2000 22:20:24 +0000 (22:20 +0000)]
(w32_defined_color): Apply gamma correction before trying to map to
the palette.
(w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
to w32_clear_rect.
Jason Rumney [Sun, 23 Jan 2000 22:15:12 +0000 (22:15 +0000)]
(w32_fill_rect): Do not try to deal with NULL hdc
here. Callers changed to always pass real device context.
(w32_draw_bitmap): Likewise.
(w32_get_glyph_overhangs): Likewise.
(w32_draw_box_rect): Make use of s->hdc rather than getting a new one.
(w32_set_vertical_scroll_bar): Pass correct HWND parameters to
pfnSetScrollInfo and SetScrollRange.
(x_get_char_face_and_encoding): Don't turn iso8859-1 characters
back into MULE characters after decoding them.
(x_get_glyph_face_and_encoding): Likewise.
(w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
GetCharABCWidthsW fails, since this is defined on Windows 9x.
(x_produce_glyphs): Calculate per char metrics for a character
that we know exists in default font when font_not_found_p is true.
Jason Rumney [Sun, 23 Jan 2000 03:22:21 +0000 (03:22 +0000)]
Add skeleton support for help strings on menus.
(add_menu_item): Native checkbox and radio support added, but not yet
enabled due to bugs.
(push_menu_item): Add parameters type, selection and help.
Callers updated.
Formatting changes to reduce unnecessary diffs with xmenu.c.
Jason Rumney [Sun, 23 Jan 2000 03:18:25 +0000 (03:18 +0000)]
Substantial rewrite for new redisplay. Major changes:
Skeleton support for images, toolbars, tooltips from xfns.c.
(Fx_create_frame): Use system default for default scroll bar width.
(w32_get_arg): Renamed from x_get_arg.
(Fx_file_dialog): New function.
(w32_list_fonts): Check cache before asking system.
(Vw32_enable_synthesized_fonts): New variable.
(Vw32_enable_italics): Obsolete, removed.
Jason Rumney [Sun, 23 Jan 2000 03:16:02 +0000 (03:16 +0000)]
(turn_on_face, turn_off_face): New functions.
(change_line_highlight): New prototype for new redisplay.
(write_glyphs): Support multibyte text. Support faces.
(beginning-of-defun-function): Variable renamed from beginning-of-defun.
(beginning-of-defun-raw): Use new variable name; doc fix.
(beginning-of-defun): Doc fix.
(end-of-defun-function): Variable renamed from end-of-defun.
(end-of-defun): Use new variable name; doc fix.
(rmail-digest-end-regexps): Variable replaces rmail-digest-end-regexp.
Allows multiple regexps for detecting the end line.
(undigestify-rmail-message): Corresponding changes.
Gerd Moellmann [Mon, 17 Jan 2000 09:13:23 +0000 (09:13 +0000)]
(enum menu_item_idx): New enumeration replacing defines
MENU_ITEMS_ITEM_.*.
(MENU_ITEMS_ITEM_HELP): New enumerator.
(push_menu_item): Add parameter HELP. Record help in menu_items.
(single_menu_item, single_submenu, list_of_items): Call
push_menu_item with new parameter.
(single_submenu): Set help string in widget value.
(menu_highlight_callback): New function.
(set_frame_menubar): Call lw_create_widget with new
parameter list.
(xmenu_show, xdialog_show): Ditto.
Gerd Moellmann [Mon, 17 Jan 2000 09:09:08 +0000 (09:09 +0000)]
(xm_arm_callback): New function.
(make_menu_in_widget): Set xm_arm_callback as XmNarmCallback and
XmNdisarmCallback for buttons (not supported for other widgets).