diff options
Diffstat (limited to 'src/xterm.c')
| -rw-r--r-- | src/xterm.c | 71 |
1 files changed, 19 insertions, 52 deletions
diff --git a/src/xterm.c b/src/xterm.c index c00d0330c23..c78408382bd 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -1367,8 +1367,7 @@ static void cvt_pixel_dtor (XtAppContext, XrmValue *, XtPointer, | |||
| 1367 | cannot be determined. */ | 1367 | cannot be determined. */ |
| 1368 | 1368 | ||
| 1369 | static struct frame * | 1369 | static struct frame * |
| 1370 | x_frame_of_widget (widget) | 1370 | x_frame_of_widget (Widget widget) |
| 1371 | Widget widget; | ||
| 1372 | { | 1371 | { |
| 1373 | struct x_display_info *dpyinfo; | 1372 | struct x_display_info *dpyinfo; |
| 1374 | Lisp_Object tail; | 1373 | Lisp_Object tail; |
| @@ -1404,10 +1403,7 @@ x_frame_of_widget (widget) | |||
| 1404 | if successful. This is called from lwlib. */ | 1403 | if successful. This is called from lwlib. */ |
| 1405 | 1404 | ||
| 1406 | int | 1405 | int |
| 1407 | x_alloc_nearest_color_for_widget (widget, cmap, color) | 1406 | x_alloc_nearest_color_for_widget (Widget widget, Colormap cmap, XColor *color) |
| 1408 | Widget widget; | ||
| 1409 | Colormap cmap; | ||
| 1410 | XColor *color; | ||
| 1411 | { | 1407 | { |
| 1412 | struct frame *f = x_frame_of_widget (widget); | 1408 | struct frame *f = x_frame_of_widget (widget); |
| 1413 | return x_alloc_nearest_color (f, cmap, color); | 1409 | return x_alloc_nearest_color (f, cmap, color); |
| @@ -1422,13 +1418,8 @@ x_alloc_nearest_color_for_widget (widget, cmap, color) | |||
| 1422 | Value is non-zero if successful. */ | 1418 | Value is non-zero if successful. */ |
| 1423 | 1419 | ||
| 1424 | int | 1420 | int |
| 1425 | x_alloc_lighter_color_for_widget (widget, display, cmap, pixel, factor, delta) | 1421 | x_alloc_lighter_color_for_widget (Widget widget, Display *display, Colormap cmap, |
| 1426 | Widget widget; | 1422 | unsigned long *pixel, double factor, int delta) |
| 1427 | Display *display; | ||
| 1428 | Colormap cmap; | ||
| 1429 | unsigned long *pixel; | ||
| 1430 | double factor; | ||
| 1431 | int delta; | ||
| 1432 | { | 1423 | { |
| 1433 | struct frame *f = x_frame_of_widget (widget); | 1424 | struct frame *f = x_frame_of_widget (widget); |
| 1434 | return x_alloc_lighter_color (f, display, cmap, pixel, factor, delta); | 1425 | return x_alloc_lighter_color (f, display, cmap, pixel, factor, delta); |
| @@ -1471,12 +1462,9 @@ static Pixel cvt_string_to_pixel_value; | |||
| 1471 | Value is True if successful, False otherwise. */ | 1462 | Value is True if successful, False otherwise. */ |
| 1472 | 1463 | ||
| 1473 | static Boolean | 1464 | static Boolean |
| 1474 | cvt_string_to_pixel (dpy, args, nargs, from, to, closure_ret) | 1465 | cvt_string_to_pixel (Display *dpy, XrmValue *args, Cardinal *nargs, |
| 1475 | Display *dpy; | 1466 | XrmValue *from, XrmValue *to, |
| 1476 | XrmValue *args; | 1467 | XtPointer *closure_ret) |
| 1477 | Cardinal *nargs; | ||
| 1478 | XrmValue *from, *to; | ||
| 1479 | XtPointer *closure_ret; | ||
| 1480 | { | 1468 | { |
| 1481 | Screen *screen; | 1469 | Screen *screen; |
| 1482 | Colormap cmap; | 1470 | Colormap cmap; |
| @@ -1560,12 +1548,8 @@ cvt_string_to_pixel (dpy, args, nargs, from, to, closure_ret) | |||
| 1560 | ARGS and NARGS are like for cvt_string_to_pixel. */ | 1548 | ARGS and NARGS are like for cvt_string_to_pixel. */ |
| 1561 | 1549 | ||
| 1562 | static void | 1550 | static void |
| 1563 | cvt_pixel_dtor (app, to, closure, args, nargs) | 1551 | cvt_pixel_dtor (XtAppContext app, XrmValuePtr to, XtPointer closure, XrmValuePtr args, |
| 1564 | XtAppContext app; | 1552 | Cardinal *nargs) |
| 1565 | XrmValuePtr to; | ||
| 1566 | XtPointer closure; | ||
| 1567 | XrmValuePtr args; | ||
| 1568 | Cardinal *nargs; | ||
| 1569 | { | 1553 | { |
| 1570 | if (*nargs != 2) | 1554 | if (*nargs != 2) |
| 1571 | { | 1555 | { |
| @@ -3953,8 +3937,7 @@ x_window_to_scroll_bar (Display *display, Window window_id) | |||
| 3953 | if WINDOW is not part of a menu bar. */ | 3937 | if WINDOW is not part of a menu bar. */ |
| 3954 | 3938 | ||
| 3955 | static Widget | 3939 | static Widget |
| 3956 | x_window_to_menu_bar (window) | 3940 | x_window_to_menu_bar (Window window) |
| 3957 | Window window; | ||
| 3958 | { | 3941 | { |
| 3959 | Lisp_Object tail; | 3942 | Lisp_Object tail; |
| 3960 | 3943 | ||
| @@ -4021,14 +4004,8 @@ static Boolean xaw3d_pick_top; | |||
| 4021 | a `end-scroll' SCROLL_BAR_CLICK_EVENT' event if so. */ | 4004 | a `end-scroll' SCROLL_BAR_CLICK_EVENT' event if so. */ |
| 4022 | 4005 | ||
| 4023 | static void | 4006 | static void |
| 4024 | xt_action_hook (widget, client_data, action_name, event, params, | 4007 | xt_action_hook (Widget widget, XtPointer client_data, String action_name, |
| 4025 | num_params) | 4008 | XEvent *event, String *params, Cardinal *num_params) |
| 4026 | Widget widget; | ||
| 4027 | XtPointer client_data; | ||
| 4028 | String action_name; | ||
| 4029 | XEvent *event; | ||
| 4030 | String *params; | ||
| 4031 | Cardinal *num_params; | ||
| 4032 | { | 4009 | { |
| 4033 | int scroll_bar_p; | 4010 | int scroll_bar_p; |
| 4034 | char *end_action; | 4011 | char *end_action; |
| @@ -4341,9 +4318,7 @@ xg_end_scroll_callback (GtkWidget *widget, | |||
| 4341 | the thumb is. */ | 4318 | the thumb is. */ |
| 4342 | 4319 | ||
| 4343 | static void | 4320 | static void |
| 4344 | xaw_jump_callback (widget, client_data, call_data) | 4321 | xaw_jump_callback (Widget widget, XtPointer client_data, XtPointer call_data) |
| 4345 | Widget widget; | ||
| 4346 | XtPointer client_data, call_data; | ||
| 4347 | { | 4322 | { |
| 4348 | struct scroll_bar *bar = (struct scroll_bar *) client_data; | 4323 | struct scroll_bar *bar = (struct scroll_bar *) client_data; |
| 4349 | float top = *(float *) call_data; | 4324 | float top = *(float *) call_data; |
| @@ -4385,9 +4360,7 @@ xaw_jump_callback (widget, client_data, call_data) | |||
| 4385 | Values < height of scroll bar mean line-wise movement. */ | 4360 | Values < height of scroll bar mean line-wise movement. */ |
| 4386 | 4361 | ||
| 4387 | static void | 4362 | static void |
| 4388 | xaw_scroll_callback (widget, client_data, call_data) | 4363 | xaw_scroll_callback (Widget widget, XtPointer client_data, XtPointer call_data) |
| 4389 | Widget widget; | ||
| 4390 | XtPointer client_data, call_data; | ||
| 4391 | { | 4364 | { |
| 4392 | struct scroll_bar *bar = (struct scroll_bar *) client_data; | 4365 | struct scroll_bar *bar = (struct scroll_bar *) client_data; |
| 4393 | /* The position really is stored cast to a pointer. */ | 4366 | /* The position really is stored cast to a pointer. */ |
| @@ -4439,9 +4412,7 @@ x_create_toolkit_scroll_bar (struct frame *f, struct scroll_bar *bar) | |||
| 4439 | #else /* not USE_GTK */ | 4412 | #else /* not USE_GTK */ |
| 4440 | 4413 | ||
| 4441 | static void | 4414 | static void |
| 4442 | x_create_toolkit_scroll_bar (f, bar) | 4415 | x_create_toolkit_scroll_bar (struct frame *f, struct scroll_bar *bar) |
| 4443 | struct frame *f; | ||
| 4444 | struct scroll_bar *bar; | ||
| 4445 | { | 4416 | { |
| 4446 | Window xwindow; | 4417 | Window xwindow; |
| 4447 | Widget widget; | 4418 | Widget widget; |
| @@ -4648,9 +4619,8 @@ x_set_toolkit_scroll_bar_thumb (struct scroll_bar *bar, int portion, int positio | |||
| 4648 | 4619 | ||
| 4649 | #else /* not USE_GTK */ | 4620 | #else /* not USE_GTK */ |
| 4650 | static void | 4621 | static void |
| 4651 | x_set_toolkit_scroll_bar_thumb (bar, portion, position, whole) | 4622 | x_set_toolkit_scroll_bar_thumb (struct scroll_bar *bar, int portion, int position, |
| 4652 | struct scroll_bar *bar; | 4623 | int whole) |
| 4653 | int portion, position, whole; | ||
| 4654 | { | 4624 | { |
| 4655 | struct frame *f = XFRAME (WINDOW_FRAME (XWINDOW (bar->window))); | 4625 | struct frame *f = XFRAME (WINDOW_FRAME (XWINDOW (bar->window))); |
| 4656 | Widget widget = SCROLL_BAR_X_WIDGET (FRAME_X_DISPLAY (f), bar); | 4626 | Widget widget = SCROLL_BAR_X_WIDGET (FRAME_X_DISPLAY (f), bar); |
| @@ -9436,10 +9406,7 @@ x_destroy_window (struct frame *f) | |||
| 9436 | 9406 | ||
| 9437 | #ifndef USE_GTK | 9407 | #ifndef USE_GTK |
| 9438 | void | 9408 | void |
| 9439 | x_wm_set_size_hint (f, flags, user_position) | 9409 | x_wm_set_size_hint (struct frame *f, long flags, int user_position) |
| 9440 | struct frame *f; | ||
| 9441 | long flags; | ||
| 9442 | int user_position; | ||
| 9443 | { | 9410 | { |
| 9444 | XSizeHints size_hints; | 9411 | XSizeHints size_hints; |
| 9445 | Window window = FRAME_OUTER_WINDOW (f); | 9412 | Window window = FRAME_OUTER_WINDOW (f); |
| @@ -10402,7 +10369,7 @@ x_process_timeouts (timer) | |||
| 10402 | processed, these widgets don't behave normally. */ | 10369 | processed, these widgets don't behave normally. */ |
| 10403 | 10370 | ||
| 10404 | void | 10371 | void |
| 10405 | x_activate_timeout_atimer () | 10372 | x_activate_timeout_atimer (void) |
| 10406 | { | 10373 | { |
| 10407 | BLOCK_INPUT; | 10374 | BLOCK_INPUT; |
| 10408 | if (!x_timeout_atimer_activated_flag) | 10375 | if (!x_timeout_atimer_activated_flag) |