diff options
| author | Xue Fuqiao | 2013-08-04 10:59:08 +0800 |
|---|---|---|
| committer | Xue Fuqiao | 2013-08-04 10:59:08 +0800 |
| commit | 99191b89ff64172740add88e67f163619a07830c (patch) | |
| tree | 828d1ac7c917076703b9d4a3746ff7480bd97f0d /src/widget.c | |
| parent | ab419665caa6e2ad7465cf59ef902cc4ad1d2117 (diff) | |
| parent | 2ad0a067728ccc7f8b32b0c3db1677ca351943fe (diff) | |
| download | emacs-99191b89ff64172740add88e67f163619a07830c.tar.gz emacs-99191b89ff64172740add88e67f163619a07830c.zip | |
Merge from mainline.
Diffstat (limited to 'src/widget.c')
| -rw-r--r-- | src/widget.c | 36 |
1 files changed, 2 insertions, 34 deletions
diff --git a/src/widget.c b/src/widget.c index e2c8e9fa23f..ec0b506046b 100644 --- a/src/widget.c +++ b/src/widget.c | |||
| @@ -503,26 +503,6 @@ widget_update_wm_size_hints (Widget widget) | |||
| 503 | update_wm_hints (ew); | 503 | update_wm_hints (ew); |
| 504 | } | 504 | } |
| 505 | 505 | ||
| 506 | |||
| 507 | #if 0 | ||
| 508 | |||
| 509 | static void | ||
| 510 | create_frame_gcs (EmacsFrame ew) | ||
| 511 | { | ||
| 512 | struct frame *s = ew->emacs_frame.frame; | ||
| 513 | |||
| 514 | s->output_data.x->normal_gc | ||
| 515 | = XCreateGC (XtDisplay (ew), RootWindowOfScreen (XtScreen (ew)), 0, 0); | ||
| 516 | s->output_data.x->reverse_gc | ||
| 517 | = XCreateGC (XtDisplay (ew), RootWindowOfScreen (XtScreen (ew)), 0, 0); | ||
| 518 | s->output_data.x->cursor_gc | ||
| 519 | = XCreateGC (XtDisplay (ew), RootWindowOfScreen (XtScreen (ew)), 0, 0); | ||
| 520 | s->output_data.x->black_relief.gc = 0; | ||
| 521 | s->output_data.x->white_relief.gc = 0; | ||
| 522 | } | ||
| 523 | |||
| 524 | #endif /* 0 */ | ||
| 525 | |||
| 526 | static char setup_frame_cursor_bits[] = | 506 | static char setup_frame_cursor_bits[] = |
| 527 | { | 507 | { |
| 528 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 508 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| @@ -683,19 +663,7 @@ EmacsFrameRealize (Widget widget, XtValueMask *mask, XSetWindowAttributes *attrs | |||
| 683 | static void | 663 | static void |
| 684 | EmacsFrameDestroy (Widget widget) | 664 | EmacsFrameDestroy (Widget widget) |
| 685 | { | 665 | { |
| 686 | EmacsFrame ew = (EmacsFrame) widget; | 666 | /* All GCs are now freed in x_free_frame_resources. */ |
| 687 | struct frame* s = ew->emacs_frame.frame; | ||
| 688 | |||
| 689 | if (! s) emacs_abort (); | ||
| 690 | if (! s->output_data.x) emacs_abort (); | ||
| 691 | |||
| 692 | block_input (); | ||
| 693 | x_free_gcs (s); | ||
| 694 | if (s->output_data.x->white_relief.gc) | ||
| 695 | XFreeGC (XtDisplay (widget), s->output_data.x->white_relief.gc); | ||
| 696 | if (s->output_data.x->black_relief.gc) | ||
| 697 | XFreeGC (XtDisplay (widget), s->output_data.x->black_relief.gc); | ||
| 698 | unblock_input (); | ||
| 699 | } | 667 | } |
| 700 | 668 | ||
| 701 | static void | 669 | static void |
| @@ -838,7 +806,7 @@ void | |||
| 838 | widget_store_internal_border (Widget widget) | 806 | widget_store_internal_border (Widget widget) |
| 839 | { | 807 | { |
| 840 | EmacsFrame ew = (EmacsFrame) widget; | 808 | EmacsFrame ew = (EmacsFrame) widget; |
| 841 | FRAME_PTR f = ew->emacs_frame.frame; | 809 | struct frame *f = ew->emacs_frame.frame; |
| 842 | 810 | ||
| 843 | ew->emacs_frame.internal_border_width = f->internal_border_width; | 811 | ew->emacs_frame.internal_border_width = f->internal_border_width; |
| 844 | } | 812 | } |