diff options
| author | Alexander Gramiak | 2019-05-09 09:37:50 -0600 |
|---|---|---|
| committer | Alexander Gramiak | 2019-05-10 17:26:12 -0600 |
| commit | 616ce44ac53f08bf447cbc032f4bb10cd65c0b70 (patch) | |
| tree | 99e0fca55271fabf5e81819f95c19e484a5fa90b /src/termhooks.h | |
| parent | 6bfc5fc6c4dfbed4b07528b64414fb04675cdf79 (diff) | |
| download | emacs-616ce44ac53f08bf447cbc032f4bb10cd65c0b70.tar.gz emacs-616ce44ac53f08bf447cbc032f4bb10cd65c0b70.zip | |
Convert Free_Pixmap macro into terminal hook
* src/termhooks.h (terminal) [HAVE_WINDOW_SYSTEM]: New terminal hook
free_pixmap.
* src/image.c: Replace Free_Pixmap with free_pixmap.
* src/msdos.h (FRAME_X_DISPLAY):
* src/nsgui.h (Display):
* src/nsterm.h (FRAME_NS_DISPLAY, FRAME_X_DISPLAY, FRAME_X_SCREEN)
(FRAME_X_VISUAL):
* src/w32term.h (FRAME_X_DISPLAY): Remove unused X-compatibility
macros and typedefs.
* src/nsterm.m:
* src/w32term.c:
* src/xterm.c: Implement and set free_pixmap hook.
Diffstat (limited to 'src/termhooks.h')
| -rw-r--r-- | src/termhooks.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/termhooks.h b/src/termhooks.h index 54f09e03033..0962add0817 100644 --- a/src/termhooks.h +++ b/src/termhooks.h | |||
| @@ -741,6 +741,15 @@ struct terminal | |||
| 741 | const char *name, | 741 | const char *name, |
| 742 | const char *class); | 742 | const char *class); |
| 743 | 743 | ||
| 744 | /* Image hooks */ | ||
| 745 | #ifdef HAVE_WINDOW_SYSTEM | ||
| 746 | /* Free the pixmap PIXMAP on F. */ | ||
| 747 | void (*free_pixmap) (struct frame *f, Pixmap pixmap); | ||
| 748 | |||
| 749 | #endif | ||
| 750 | |||
| 751 | /* Deletion hooks */ | ||
| 752 | |||
| 744 | /* Called to delete the device-specific portions of a frame that is | 753 | /* Called to delete the device-specific portions of a frame that is |
| 745 | on this terminal device. */ | 754 | on this terminal device. */ |
| 746 | void (*delete_frame_hook) (struct frame *); | 755 | void (*delete_frame_hook) (struct frame *); |