diff options
| author | Karl Heuer | 1995-07-26 00:04:12 +0000 |
|---|---|---|
| committer | Karl Heuer | 1995-07-26 00:04:12 +0000 |
| commit | 54e9e9537aedf28bb6bac1059e4542b491800e88 (patch) | |
| tree | ab00292bbf903444e5247000a58e9a46d3fd0203 /src | |
| parent | 9c25094f32cb58f1b21e5b6084b7804831b4a949 (diff) | |
| download | emacs-54e9e9537aedf28bb6bac1059e4542b491800e88.tar.gz emacs-54e9e9537aedf28bb6bac1059e4542b491800e88.zip | |
Do renamings:
frame->display => frame->output, struct x_display -> struct x_output.
Diffstat (limited to 'src')
| -rw-r--r-- | src/widget.c | 66 | ||||
| -rw-r--r-- | src/xfns.c | 8 | ||||
| -rw-r--r-- | src/xmenu.c | 2 |
3 files changed, 38 insertions, 38 deletions
diff --git a/src/widget.c b/src/widget.c index a18073313dc..5c46e99ac80 100644 --- a/src/widget.c +++ b/src/widget.c | |||
| @@ -169,8 +169,8 @@ get_default_char_pixel_size (ew, pixel_width, pixel_height) | |||
| 169 | int* pixel_height; | 169 | int* pixel_height; |
| 170 | { | 170 | { |
| 171 | struct frame* f = ew->emacs_frame.frame; | 171 | struct frame* f = ew->emacs_frame.frame; |
| 172 | *pixel_width = FONT_WIDTH (f->display.x->font); | 172 | *pixel_width = FONT_WIDTH (f->output_data.x->font); |
| 173 | *pixel_height = f->display.x->line_height; | 173 | *pixel_height = f->output_data.x->line_height; |
| 174 | } | 174 | } |
| 175 | 175 | ||
| 176 | static void | 176 | static void |
| @@ -423,13 +423,13 @@ set_frame_size (ew) | |||
| 423 | char shell_position [32]; | 423 | char shell_position [32]; |
| 424 | 424 | ||
| 425 | /* Take into account the size of the scrollbar */ | 425 | /* Take into account the size of the scrollbar */ |
| 426 | frame->display.x->vertical_scroll_bar_extra | 426 | frame->output_data.x->vertical_scroll_bar_extra |
| 427 | = (!FRAME_HAS_VERTICAL_SCROLL_BARS (frame) | 427 | = (!FRAME_HAS_VERTICAL_SCROLL_BARS (frame) |
| 428 | ? 0 | 428 | ? 0 |
| 429 | : FRAME_SCROLL_BAR_PIXEL_WIDTH (frame) > 0 | 429 | : FRAME_SCROLL_BAR_PIXEL_WIDTH (frame) > 0 |
| 430 | ? FRAME_SCROLL_BAR_PIXEL_WIDTH (frame) | 430 | ? FRAME_SCROLL_BAR_PIXEL_WIDTH (frame) |
| 431 | : (FRAME_SCROLL_BAR_COLS (frame) | 431 | : (FRAME_SCROLL_BAR_COLS (frame) |
| 432 | * FONT_WIDTH (frame->display.x->font))); | 432 | * FONT_WIDTH (frame->output_data.x->font))); |
| 433 | 433 | ||
| 434 | change_frame_size (frame, h, w, 1, 0); | 434 | change_frame_size (frame, h, w, 1, 0); |
| 435 | char_to_pixel_size (ew, w, h, &pixel_width, &pixel_height); | 435 | char_to_pixel_size (ew, w, h, &pixel_width, &pixel_height); |
| @@ -535,13 +535,13 @@ create_frame_gcs (ew) | |||
| 535 | { | 535 | { |
| 536 | struct frame *s = ew->emacs_frame.frame; | 536 | struct frame *s = ew->emacs_frame.frame; |
| 537 | 537 | ||
| 538 | s->display.x->normal_gc | 538 | s->output_data.x->normal_gc |
| 539 | = XCreateGC (XtDisplay (ew), RootWindowOfScreen (XtScreen (ew)), | 539 | = XCreateGC (XtDisplay (ew), RootWindowOfScreen (XtScreen (ew)), |
| 540 | (unsigned long)0, (XGCValues *)0); | 540 | (unsigned long)0, (XGCValues *)0); |
| 541 | s->display.x->reverse_gc | 541 | s->output_data.x->reverse_gc |
| 542 | = XCreateGC (XtDisplay (ew), RootWindowOfScreen (XtScreen (ew)), | 542 | = XCreateGC (XtDisplay (ew), RootWindowOfScreen (XtScreen (ew)), |
| 543 | (unsigned long)0, (XGCValues *)0); | 543 | (unsigned long)0, (XGCValues *)0); |
| 544 | s->display.x->cursor_gc | 544 | s->output_data.x->cursor_gc |
| 545 | = XCreateGC (XtDisplay (ew), RootWindowOfScreen (XtScreen (ew)), | 545 | = XCreateGC (XtDisplay (ew), RootWindowOfScreen (XtScreen (ew)), |
| 546 | (unsigned long)0, (XGCValues *)0); | 546 | (unsigned long)0, (XGCValues *)0); |
| 547 | } | 547 | } |
| @@ -593,7 +593,7 @@ setup_frame_gcs (ew) | |||
| 593 | gc_values.graphics_exposures = False; | 593 | gc_values.graphics_exposures = False; |
| 594 | gc_values.stipple = blank_stipple; | 594 | gc_values.stipple = blank_stipple; |
| 595 | gc_values.tile = blank_tile; | 595 | gc_values.tile = blank_tile; |
| 596 | XChangeGC (XtDisplay (ew), s->display.x->normal_gc, | 596 | XChangeGC (XtDisplay (ew), s->output_data.x->normal_gc, |
| 597 | (GCFont | GCForeground | GCBackground | GCGraphicsExposures | 597 | (GCFont | GCForeground | GCBackground | GCGraphicsExposures |
| 598 | | GCStipple | GCTile), | 598 | | GCStipple | GCTile), |
| 599 | &gc_values); | 599 | &gc_values); |
| @@ -605,7 +605,7 @@ setup_frame_gcs (ew) | |||
| 605 | gc_values.graphics_exposures = False; | 605 | gc_values.graphics_exposures = False; |
| 606 | gc_values.stipple = blank_stipple; | 606 | gc_values.stipple = blank_stipple; |
| 607 | gc_values.tile = blank_tile; | 607 | gc_values.tile = blank_tile; |
| 608 | XChangeGC (XtDisplay (ew), s->display.x->reverse_gc, | 608 | XChangeGC (XtDisplay (ew), s->output_data.x->reverse_gc, |
| 609 | (GCFont | GCForeground | GCBackground | GCGraphicsExposures | 609 | (GCFont | GCForeground | GCBackground | GCGraphicsExposures |
| 610 | | GCStipple | GCTile), | 610 | | GCStipple | GCTile), |
| 611 | &gc_values); | 611 | &gc_values); |
| @@ -620,7 +620,7 @@ setup_frame_gcs (ew) | |||
| 620 | = XCreateBitmapFromData (XtDisplay (ew), | 620 | = XCreateBitmapFromData (XtDisplay (ew), |
| 621 | RootWindowOfScreen (XtScreen (ew)), | 621 | RootWindowOfScreen (XtScreen (ew)), |
| 622 | setup_frame_cursor_bits, 16, 16); | 622 | setup_frame_cursor_bits, 16, 16); |
| 623 | XChangeGC (XtDisplay (ew), s->display.x->cursor_gc, | 623 | XChangeGC (XtDisplay (ew), s->output_data.x->cursor_gc, |
| 624 | (GCFont | GCForeground | GCBackground | GCGraphicsExposures | 624 | (GCFont | GCForeground | GCBackground | GCGraphicsExposures |
| 625 | | GCStipple | GCTile), | 625 | | GCStipple | GCTile), |
| 626 | &gc_values); | 626 | &gc_values); |
| @@ -630,7 +630,7 @@ static void | |||
| 630 | update_various_frame_slots (ew) | 630 | update_various_frame_slots (ew) |
| 631 | EmacsFrame ew; | 631 | EmacsFrame ew; |
| 632 | { | 632 | { |
| 633 | struct x_display* x = ew->emacs_frame.frame->display.x; | 633 | struct x_output *x = ew->emacs_frame.frame->output_data.x; |
| 634 | x->pixel_height = ew->core.height; | 634 | x->pixel_height = ew->core.height; |
| 635 | x->pixel_width = ew->core.width; | 635 | x->pixel_width = ew->core.width; |
| 636 | x->internal_border_width = ew->emacs_frame.internal_border_width; | 636 | x->internal_border_width = ew->emacs_frame.internal_border_width; |
| @@ -641,7 +641,7 @@ static void | |||
| 641 | update_from_various_frame_slots (ew) | 641 | update_from_various_frame_slots (ew) |
| 642 | EmacsFrame ew; | 642 | EmacsFrame ew; |
| 643 | { | 643 | { |
| 644 | struct x_display* x = ew->emacs_frame.frame->display.x; | 644 | struct x_output *x = ew->emacs_frame.frame->output_data.x; |
| 645 | ew->core.height = x->pixel_height; | 645 | ew->core.height = x->pixel_height; |
| 646 | ew->core.width = x->pixel_width; | 646 | ew->core.width = x->pixel_width; |
| 647 | ew->core.background_pixel = x->background_pixel; | 647 | ew->core.background_pixel = x->background_pixel; |
| @@ -702,7 +702,7 @@ EmacsFrameInitialize (request, new, dum1, dum2) | |||
| 702 | } | 702 | } |
| 703 | 703 | ||
| 704 | /* Update the font field in frame */ | 704 | /* Update the font field in frame */ |
| 705 | ew->emacs_frame.frame->display.x->font = ew->emacs_frame.font; | 705 | ew->emacs_frame.frame->output_data.x->font = ew->emacs_frame.font; |
| 706 | #endif | 706 | #endif |
| 707 | 707 | ||
| 708 | update_from_various_frame_slots (ew); | 708 | update_from_various_frame_slots (ew); |
| @@ -744,8 +744,8 @@ EmacsFrameDestroy (widget) | |||
| 744 | struct frame* s = ew->emacs_frame.frame; | 744 | struct frame* s = ew->emacs_frame.frame; |
| 745 | 745 | ||
| 746 | if (! s) abort (); | 746 | if (! s) abort (); |
| 747 | if (! s->display.x) abort (); | 747 | if (! s->output_data.x) abort (); |
| 748 | if (! s->display.x->normal_gc) abort (); | 748 | if (! s->output_data.x->normal_gc) abort (); |
| 749 | 749 | ||
| 750 | /* this would be called from Fdelete_frame() but it needs to free some | 750 | /* this would be called from Fdelete_frame() but it needs to free some |
| 751 | stuff after the widget has been finalized but before the widget has | 751 | stuff after the widget has been finalized but before the widget has |
| @@ -754,9 +754,9 @@ EmacsFrameDestroy (widget) | |||
| 754 | 754 | ||
| 755 | BLOCK_INPUT; | 755 | BLOCK_INPUT; |
| 756 | /* need to be careful that the face-freeing code doesn't free these too */ | 756 | /* need to be careful that the face-freeing code doesn't free these too */ |
| 757 | XFreeGC (XtDisplay (widget), s->display.x->normal_gc); | 757 | XFreeGC (XtDisplay (widget), s->output_data.x->normal_gc); |
| 758 | XFreeGC (XtDisplay (widget), s->display.x->reverse_gc); | 758 | XFreeGC (XtDisplay (widget), s->output_data.x->reverse_gc); |
| 759 | XFreeGC (XtDisplay (widget), s->display.x->cursor_gc); | 759 | XFreeGC (XtDisplay (widget), s->output_data.x->cursor_gc); |
| 760 | UNBLOCK_INPUT; | 760 | UNBLOCK_INPUT; |
| 761 | } | 761 | } |
| 762 | 762 | ||
| @@ -900,12 +900,12 @@ EmacsFrameSetCharSize (widget, columns, rows) | |||
| 900 | if (columns < 3) columns = 3; /* no way buddy */ | 900 | if (columns < 3) columns = 3; /* no way buddy */ |
| 901 | 901 | ||
| 902 | check_frame_size (f, &rows, &columns); | 902 | check_frame_size (f, &rows, &columns); |
| 903 | f->display.x->vertical_scroll_bar_extra | 903 | f->output_data.x->vertical_scroll_bar_extra |
| 904 | = (!FRAME_HAS_VERTICAL_SCROLL_BARS (f) | 904 | = (!FRAME_HAS_VERTICAL_SCROLL_BARS (f) |
| 905 | ? 0 | 905 | ? 0 |
| 906 | : FRAME_SCROLL_BAR_PIXEL_WIDTH (f) > 0 | 906 | : FRAME_SCROLL_BAR_PIXEL_WIDTH (f) > 0 |
| 907 | ? FRAME_SCROLL_BAR_PIXEL_WIDTH (f) | 907 | ? FRAME_SCROLL_BAR_PIXEL_WIDTH (f) |
| 908 | : (FRAME_SCROLL_BAR_COLS (f) * FONT_WIDTH (f->display.x->font))); | 908 | : (FRAME_SCROLL_BAR_COLS (f) * FONT_WIDTH (f->output_data.x->font))); |
| 909 | 909 | ||
| 910 | char_to_pixel_size (ew, columns, rows, &pixel_width, &pixel_height); | 910 | char_to_pixel_size (ew, columns, rows, &pixel_width, &pixel_height); |
| 911 | 911 | ||
| @@ -915,14 +915,14 @@ EmacsFrameSetCharSize (widget, columns, rows) | |||
| 915 | { | 915 | { |
| 916 | int hdelta = pixel_height - ew->core.height; | 916 | int hdelta = pixel_height - ew->core.height; |
| 917 | int wdelta = pixel_width - ew->core.width; | 917 | int wdelta = pixel_width - ew->core.width; |
| 918 | int column_widget_height = f->display.x->column_widget->core.height; | 918 | int column_widget_height = f->output_data.x->column_widget->core.height; |
| 919 | int column_widget_width = f->display.x->column_widget->core.width; | 919 | int column_widget_width = f->output_data.x->column_widget->core.width; |
| 920 | int outer_widget_height = f->display.x->widget->core.height; | 920 | int outer_widget_height = f->output_data.x->widget->core.height; |
| 921 | int outer_widget_width = f->display.x->widget->core.width; | 921 | int outer_widget_width = f->output_data.x->widget->core.width; |
| 922 | int old_left = f->display.x->widget->core.x; | 922 | int old_left = f->output_data.x->widget->core.x; |
| 923 | int old_top = f->display.x->widget->core.y; | 923 | int old_top = f->output_data.x->widget->core.y; |
| 924 | 924 | ||
| 925 | lw_refigure_widget (f->display.x->column_widget, False); | 925 | lw_refigure_widget (f->output_data.x->column_widget, False); |
| 926 | update_hints_inhibit = 1; | 926 | update_hints_inhibit = 1; |
| 927 | 927 | ||
| 928 | ac = 0; | 928 | ac = 0; |
| @@ -933,21 +933,21 @@ EmacsFrameSetCharSize (widget, columns, rows) | |||
| 933 | ac = 0; | 933 | ac = 0; |
| 934 | XtSetArg (al[ac], XtNheight, column_widget_height + hdelta); ac++; | 934 | XtSetArg (al[ac], XtNheight, column_widget_height + hdelta); ac++; |
| 935 | XtSetArg (al[ac], XtNwidth, column_widget_width + wdelta); ac++; | 935 | XtSetArg (al[ac], XtNwidth, column_widget_width + wdelta); ac++; |
| 936 | XtSetValues (f->display.x->column_widget, al, ac); | 936 | XtSetValues (f->output_data.x->column_widget, al, ac); |
| 937 | 937 | ||
| 938 | ac = 0; | 938 | ac = 0; |
| 939 | XtSetArg (al[ac], XtNheight, outer_widget_height + hdelta); ac++; | 939 | XtSetArg (al[ac], XtNheight, outer_widget_height + hdelta); ac++; |
| 940 | XtSetArg (al[ac], XtNwidth, outer_widget_width + wdelta); ac++; | 940 | XtSetArg (al[ac], XtNwidth, outer_widget_width + wdelta); ac++; |
| 941 | XtSetValues (f->display.x->widget, al, ac); | 941 | XtSetValues (f->output_data.x->widget, al, ac); |
| 942 | 942 | ||
| 943 | lw_refigure_widget (f->display.x->column_widget, True); | 943 | lw_refigure_widget (f->output_data.x->column_widget, True); |
| 944 | 944 | ||
| 945 | update_hints_inhibit = 0; | 945 | update_hints_inhibit = 0; |
| 946 | update_wm_hints (ew); | 946 | update_wm_hints (ew); |
| 947 | 947 | ||
| 948 | /* These seem to get clobbered. I don't know why. - rms. */ | 948 | /* These seem to get clobbered. I don't know why. - rms. */ |
| 949 | f->display.x->widget->core.x = old_left; | 949 | f->output_data.x->widget->core.x = old_left; |
| 950 | f->display.x->widget->core.y = old_top; | 950 | f->output_data.x->widget->core.y = old_top; |
| 951 | } | 951 | } |
| 952 | 952 | ||
| 953 | /* We've set {FRAME,PIXEL}_{WIDTH,HEIGHT} to the values we hope to | 953 | /* We've set {FRAME,PIXEL}_{WIDTH,HEIGHT} to the values we hope to |
diff --git a/src/xfns.c b/src/xfns.c index ec307588c00..9ed565adf4a 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -314,7 +314,7 @@ x_any_window_to_frame (dpyinfo, wdesc) | |||
| 314 | if (!GC_FRAMEP (frame)) | 314 | if (!GC_FRAMEP (frame)) |
| 315 | continue; | 315 | continue; |
| 316 | f = XFRAME (frame); | 316 | f = XFRAME (frame); |
| 317 | if (f->display.nothing == 1 || FRAME_X_DISPLAY_INFO (f) != dpyinfo) | 317 | if (f->output_data.nothing == 1 || FRAME_X_DISPLAY_INFO (f) != dpyinfo) |
| 318 | continue; | 318 | continue; |
| 319 | x = f->output_data.x; | 319 | x = f->output_data.x; |
| 320 | /* This frame matches if the window is any of its widgets. */ | 320 | /* This frame matches if the window is any of its widgets. */ |
| @@ -346,7 +346,7 @@ x_non_menubar_window_to_frame (dpyinfo, wdesc) | |||
| 346 | if (!GC_FRAMEP (frame)) | 346 | if (!GC_FRAMEP (frame)) |
| 347 | continue; | 347 | continue; |
| 348 | f = XFRAME (frame); | 348 | f = XFRAME (frame); |
| 349 | if (f->display.nothing == 1 || FRAME_X_DISPLAY_INFO (f) != dpyinfo) | 349 | if (f->output_data.nothing == 1 || FRAME_X_DISPLAY_INFO (f) != dpyinfo) |
| 350 | continue; | 350 | continue; |
| 351 | x = f->output_data.x; | 351 | x = f->output_data.x; |
| 352 | /* This frame matches if the window is any of its widgets. */ | 352 | /* This frame matches if the window is any of its widgets. */ |
| @@ -375,7 +375,7 @@ x_menubar_window_to_frame (dpyinfo, wdesc) | |||
| 375 | if (!GC_FRAMEP (frame)) | 375 | if (!GC_FRAMEP (frame)) |
| 376 | continue; | 376 | continue; |
| 377 | f = XFRAME (frame); | 377 | f = XFRAME (frame); |
| 378 | if (f->display.nothing == 1 || FRAME_X_DISPLAY_INFO (f) != dpyinfo) | 378 | if (f->output_data.nothing == 1 || FRAME_X_DISPLAY_INFO (f) != dpyinfo) |
| 379 | continue; | 379 | continue; |
| 380 | x = f->output_data.x; | 380 | x = f->output_data.x; |
| 381 | /* Match if the window is this frame's menubar. */ | 381 | /* Match if the window is this frame's menubar. */ |
| @@ -403,7 +403,7 @@ x_top_window_to_frame (dpyinfo, wdesc) | |||
| 403 | if (!GC_FRAMEP (frame)) | 403 | if (!GC_FRAMEP (frame)) |
| 404 | continue; | 404 | continue; |
| 405 | f = XFRAME (frame); | 405 | f = XFRAME (frame); |
| 406 | if (f->display.nothing == 1 || FRAME_X_DISPLAY_INFO (f) != dpyinfo) | 406 | if (f->output_data.nothing == 1 || FRAME_X_DISPLAY_INFO (f) != dpyinfo) |
| 407 | continue; | 407 | continue; |
| 408 | x = f->output_data.x; | 408 | x = f->output_data.x; |
| 409 | /* This frame matches if the window is its topmost widget. */ | 409 | /* This frame matches if the window is its topmost widget. */ |
diff --git a/src/xmenu.c b/src/xmenu.c index c65ba4a1455..d7360a72415 100644 --- a/src/xmenu.c +++ b/src/xmenu.c | |||
| @@ -184,7 +184,7 @@ menubar_id_to_frame (id) | |||
| 184 | if (!GC_FRAMEP (frame)) | 184 | if (!GC_FRAMEP (frame)) |
| 185 | continue; | 185 | continue; |
| 186 | f = XFRAME (frame); | 186 | f = XFRAME (frame); |
| 187 | if (f->display.nothing == 1) | 187 | if (f->output_data.nothing == 1) |
| 188 | continue; | 188 | continue; |
| 189 | if (f->output_data.x->id == id) | 189 | if (f->output_data.x->id == id) |
| 190 | return f; | 190 | return f; |