diff options
| author | Paul Eggert | 2014-12-21 19:35:30 -0800 |
|---|---|---|
| committer | Paul Eggert | 2014-12-21 19:36:28 -0800 |
| commit | 455e54691f2e95ff1ec1e3e81f3e271775269af2 (patch) | |
| tree | 25948f57dc47a4ca25c03e58d89a4c18930a646e /src/w32term.c | |
| parent | be4304d8d824100b9c877988cd6c8df5e102c2ae (diff) | |
| download | emacs-455e54691f2e95ff1ec1e3e81f3e271775269af2.tar.gz emacs-455e54691f2e95ff1ec1e3e81f3e271775269af2.zip | |
Use bool for boolean in xterm.c
* frame.h, nsterm.m, w32term.c, w32term.h, xterm.c:
(x_set_window_size, x_bitmap_icon):
* nsterm.m (ns_frame_raise_lower, x_new_font):
* termhooks.h (struct terminal.toggle_invisible_pointer_hook)
(struct terminal.frame_raise_lower_hook):
* w32term.c (w32_frame_raise_lower):
* xterm.c, xterm.h (x_text_icon):
* xterm.c (x_update_window_begin, x_update_window_end)
(x_update_end, x_after_update_window_line)
(x_set_glyph_string_gc, x_draw_glyph_string_background)
(x_draw_glyph_string_foreground)
(x_draw_composite_glyph_string_foreground)
(x_alloc_lighter_color, x_draw_relief_rect)
(x_draw_glyph_string_box, x_draw_image_relief)
(x_draw_image_glyph_string, x_draw_stretch_glyph_string)
(x_draw_underwave, x_draw_glyph_string, x_show_hourglass)
(x_hide_hourglass):
(XFillRectangle) [HAVE_GTK3]:
(XTtoggle_invisible_pointer, frame_highlight, frame_unhighlight)
(x_focus_changed, x_find_modifier_meanings, note_mouse_movement)
(XTmouse_position, xt_action_hook, xt_horizontal_action_hook)
(x_send_scroll_bar_event, xm_scroll_callback)
(xg_scroll_callback, xaw_jump_callback, xaw_scroll_callback)
(x_create_toolkit_scroll_bar)
(x_create_horizontal_toolkit_scroll_bar)
(x_set_toolkit_horizontal_scroll_bar_thumb, x_scroll_bar_create)
(x_scroll_bar_set_handle, XTset_vertical_scroll_bar)
(XTset_horizontal_scroll_bar, x_scroll_bar_expose)
(x_scroll_bar_handle_click, x_scroll_bar_note_movement)
(x_scroll_bar_report_motion)
(x_horizontal_scroll_bar_report_motion, x_net_wm_state)
(handle_one_xevent, XTread_socket, x_draw_bar_cursor)
(x_draw_window_cursor, x_clear_errors)
(x_trace_wire, x_new_font, x_set_offset, wm_supports)
(set_wm_state, x_set_sticky, get_current_wm_state)
(do_ewmh_fullscreen, x_handle_net_wm_state)
(x_check_expected_move, x_sync_with_move, x_wait_for_event)
(x_set_window_size_1, XTframe_raise_lower)
(x_make_frame_visible, x_iconify_frame)
(x_timeout_atimer_activated_flag, same_x_server, x_display_ok)
(x_term_init, x_process_timeouts, x_activate_timeout_atimer)
(x_delete_terminal, x_initialize, syms_of_xterm):
Use bool for boolean.
Diffstat (limited to 'src/w32term.c')
| -rw-r--r-- | src/w32term.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/w32term.c b/src/w32term.c index 94b332b929f..fb8648ca4f9 100644 --- a/src/w32term.c +++ b/src/w32term.c | |||
| @@ -185,7 +185,7 @@ void x_lower_frame (struct frame *); | |||
| 185 | void x_scroll_bar_clear (struct frame *); | 185 | void x_scroll_bar_clear (struct frame *); |
| 186 | void x_wm_set_size_hint (struct frame *, long, bool); | 186 | void x_wm_set_size_hint (struct frame *, long, bool); |
| 187 | void x_raise_frame (struct frame *); | 187 | void x_raise_frame (struct frame *); |
| 188 | void x_set_window_size (struct frame *, int, int, int, bool); | 188 | void x_set_window_size (struct frame *, bool, int, int, bool); |
| 189 | void x_wm_set_window_state (struct frame *, int); | 189 | void x_wm_set_window_state (struct frame *, int); |
| 190 | void x_wm_set_icon_pixmap (struct frame *, int); | 190 | void x_wm_set_icon_pixmap (struct frame *, int); |
| 191 | static void w32_initialize (void); | 191 | static void w32_initialize (void); |
| @@ -5716,7 +5716,7 @@ w32_draw_window_cursor (struct window *w, struct glyph_row *glyph_row, | |||
| 5716 | 5716 | ||
| 5717 | /* Icons. */ | 5717 | /* Icons. */ |
| 5718 | 5718 | ||
| 5719 | int | 5719 | bool |
| 5720 | x_bitmap_icon (struct frame *f, Lisp_Object icon) | 5720 | x_bitmap_icon (struct frame *f, Lisp_Object icon) |
| 5721 | { | 5721 | { |
| 5722 | HANDLE main_icon; | 5722 | HANDLE main_icon; |
| @@ -6096,12 +6096,13 @@ w32fullscreen_hook (struct frame *f) | |||
| 6096 | } | 6096 | } |
| 6097 | 6097 | ||
| 6098 | /* Call this to change the size of frame F's x-window. | 6098 | /* Call this to change the size of frame F's x-window. |
| 6099 | If CHANGE_GRAVITY is 1, we change to top-left-corner window gravity | 6099 | If CHANGE_GRAVITY, change to top-left-corner window gravity |
| 6100 | for this size change and subsequent size changes. | 6100 | for this size change and subsequent size changes. |
| 6101 | Otherwise we leave the window gravity unchanged. */ | 6101 | Otherwise we leave the window gravity unchanged. */ |
| 6102 | 6102 | ||
| 6103 | void | 6103 | void |
| 6104 | x_set_window_size (struct frame *f, int change_gravity, int width, int height, bool pixelwise) | 6104 | x_set_window_size (struct frame *f, bool change_gravity, |
| 6105 | int width, int height, bool pixelwise) | ||
| 6105 | { | 6106 | { |
| 6106 | int pixelwidth, pixelheight; | 6107 | int pixelwidth, pixelheight; |
| 6107 | RECT rect; | 6108 | RECT rect; |
| @@ -6331,7 +6332,7 @@ x_lower_frame (struct frame *f) | |||
| 6331 | } | 6332 | } |
| 6332 | 6333 | ||
| 6333 | static void | 6334 | static void |
| 6334 | w32_frame_raise_lower (struct frame *f, int raise_flag) | 6335 | w32_frame_raise_lower (struct frame *f, bool raise_flag) |
| 6335 | { | 6336 | { |
| 6336 | if (! FRAME_W32_P (f)) | 6337 | if (! FRAME_W32_P (f)) |
| 6337 | return; | 6338 | return; |