diff options
| author | Richard M. Stallman | 1996-04-30 19:40:56 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-04-30 19:40:56 +0000 |
| commit | d2bd6bc4c14eb86c92aeaf7b681ee4d265158983 (patch) | |
| tree | f9c1d067b3cc7841ba25dc485cd5cdaf34d52e14 /src | |
| parent | d017deb2ddd316f7df9be1e31edde91ba9573240 (diff) | |
| download | emacs-d2bd6bc4c14eb86c92aeaf7b681ee4d265158983.tar.gz emacs-d2bd6bc4c14eb86c92aeaf7b681ee4d265158983.zip | |
[USE_X_TOOLKIT]: Include X11/Shell.h.
(x_wm_set_icon_pixmap) [USE_X_TOOLKIT]: Tell widget the new pixmap.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/src/xterm.c b/src/xterm.c index 094240651ab..79561dcaacd 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -85,6 +85,10 @@ Boston, MA 02111-1307, USA. */ | |||
| 85 | #include "intervals.h" | 85 | #include "intervals.h" |
| 86 | 86 | ||
| 87 | #ifdef USE_X_TOOLKIT | 87 | #ifdef USE_X_TOOLKIT |
| 88 | #include <X11/Shell.h> | ||
| 89 | #endif | ||
| 90 | |||
| 91 | #ifdef USE_X_TOOLKIT | ||
| 88 | extern void free_frame_menubar (); | 92 | extern void free_frame_menubar (); |
| 89 | extern FRAME_PTR x_menubar_window_to_frame (); | 93 | extern FRAME_PTR x_menubar_window_to_frame (); |
| 90 | #if (XtSpecificationRelease >= 5) && !defined(NO_EDITRES) | 94 | #if (XtSpecificationRelease >= 5) && !defined(NO_EDITRES) |
| @@ -5727,6 +5731,8 @@ x_wm_set_icon_pixmap (f, pixmap_id) | |||
| 5727 | struct frame *f; | 5731 | struct frame *f; |
| 5728 | int pixmap_id; | 5732 | int pixmap_id; |
| 5729 | { | 5733 | { |
| 5734 | Pixmap icon_pixmap; | ||
| 5735 | |||
| 5730 | #ifdef USE_X_TOOLKIT | 5736 | #ifdef USE_X_TOOLKIT |
| 5731 | Window window = XtWindow (f->output_data.x->widget); | 5737 | Window window = XtWindow (f->output_data.x->widget); |
| 5732 | #else | 5738 | #else |
| @@ -5735,7 +5741,7 @@ x_wm_set_icon_pixmap (f, pixmap_id) | |||
| 5735 | 5741 | ||
| 5736 | if (pixmap_id > 0) | 5742 | if (pixmap_id > 0) |
| 5737 | { | 5743 | { |
| 5738 | Pixmap icon_pixmap = x_bitmap_pixmap (f, pixmap_id); | 5744 | icon_pixmap = x_bitmap_pixmap (f, pixmap_id); |
| 5739 | f->output_data.x->wm_hints.icon_pixmap = icon_pixmap; | 5745 | f->output_data.x->wm_hints.icon_pixmap = icon_pixmap; |
| 5740 | } | 5746 | } |
| 5741 | else | 5747 | else |
| @@ -5754,8 +5760,20 @@ x_wm_set_icon_pixmap (f, pixmap_id) | |||
| 5754 | #endif | 5760 | #endif |
| 5755 | } | 5761 | } |
| 5756 | 5762 | ||
| 5763 | #ifdef USE_X_TOOLKIT /* same as in x_wm_set_window_state. */ | ||
| 5764 | |||
| 5765 | { | ||
| 5766 | Arg al[1]; | ||
| 5767 | XtSetArg (al[0], XtNiconPixmap, icon_pixmap); | ||
| 5768 | XtSetValues (f->output_data.x->widget, al, 1); | ||
| 5769 | } | ||
| 5770 | |||
| 5771 | #else /* not USE_X_TOOLKIT */ | ||
| 5772 | |||
| 5757 | f->output_data.x->wm_hints.flags |= IconPixmapHint; | 5773 | f->output_data.x->wm_hints.flags |= IconPixmapHint; |
| 5758 | XSetWMHints (FRAME_X_DISPLAY (f), window, &f->output_data.x->wm_hints); | 5774 | XSetWMHints (FRAME_X_DISPLAY (f), window, &f->output_data.x->wm_hints); |
| 5775 | |||
| 5776 | #endif /* not USE_X_TOOLKIT */ | ||
| 5759 | } | 5777 | } |
| 5760 | 5778 | ||
| 5761 | x_wm_set_icon_position (f, icon_x, icon_y) | 5779 | x_wm_set_icon_position (f, icon_x, icon_y) |