From: Richard M. Stallman Date: Tue, 30 Apr 1996 19:40:56 +0000 (+0000) Subject: [USE_X_TOOLKIT]: Include X11/Shell.h. X-Git-Tag: emacs-19.34~744 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d2bd6bc4c14eb86c92aeaf7b681ee4d265158983;p=emacs.git [USE_X_TOOLKIT]: Include X11/Shell.h. (x_wm_set_icon_pixmap) [USE_X_TOOLKIT]: Tell widget the new pixmap. --- diff --git a/src/xterm.c b/src/xterm.c index 094240651ab..79561dcaacd 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -84,6 +84,10 @@ Boston, MA 02111-1307, USA. */ #include "keyboard.h" #include "intervals.h" +#ifdef USE_X_TOOLKIT +#include +#endif + #ifdef USE_X_TOOLKIT extern void free_frame_menubar (); extern FRAME_PTR x_menubar_window_to_frame (); @@ -5727,6 +5731,8 @@ x_wm_set_icon_pixmap (f, pixmap_id) struct frame *f; int pixmap_id; { + Pixmap icon_pixmap; + #ifdef USE_X_TOOLKIT Window window = XtWindow (f->output_data.x->widget); #else @@ -5735,7 +5741,7 @@ x_wm_set_icon_pixmap (f, pixmap_id) if (pixmap_id > 0) { - Pixmap icon_pixmap = x_bitmap_pixmap (f, pixmap_id); + icon_pixmap = x_bitmap_pixmap (f, pixmap_id); f->output_data.x->wm_hints.icon_pixmap = icon_pixmap; } else @@ -5754,8 +5760,20 @@ x_wm_set_icon_pixmap (f, pixmap_id) #endif } +#ifdef USE_X_TOOLKIT /* same as in x_wm_set_window_state. */ + + { + Arg al[1]; + XtSetArg (al[0], XtNiconPixmap, icon_pixmap); + XtSetValues (f->output_data.x->widget, al, 1); + } + +#else /* not USE_X_TOOLKIT */ + f->output_data.x->wm_hints.flags |= IconPixmapHint; XSetWMHints (FRAME_X_DISPLAY (f), window, &f->output_data.x->wm_hints); + +#endif /* not USE_X_TOOLKIT */ } x_wm_set_icon_position (f, icon_x, icon_y)