emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/src/xterm.c


From: Chong Yidong
Subject: [Emacs-diffs] Changes to emacs/src/xterm.c
Date: Wed, 16 Nov 2005 11:38:50 -0500

Index: emacs/src/xterm.c
diff -c emacs/src/xterm.c:1.889 emacs/src/xterm.c:1.890
*** emacs/src/xterm.c:1.889     Wed Nov 16 05:49:18 2005
--- emacs/src/xterm.c   Wed Nov 16 16:38:48 2005
***************
*** 7362,7376 ****
        /* Create the GNU bitmap and mask if necessary.  */
        if (FRAME_X_DISPLAY_INFO (f)->icon_bitmap_id < 0)
        {
  #if defined (HAVE_XPM) && defined (HAVE_X_WINDOWS)
!         FRAME_X_DISPLAY_INFO (f)->icon_bitmap_id
!           = x_create_bitmap_from_xpm_data (f, gnu_bits);
  #else
!         FRAME_X_DISPLAY_INFO (f)->icon_bitmap_id
!           = x_create_bitmap_from_data (f, gnu_bits,
!                                        gnu_width, gnu_height);
! #endif /*  (HAVE_XPM) && defined (HAVE_X_WINDOWS) */
!         x_create_bitmap_mask (f, FRAME_X_DISPLAY_INFO (f)->icon_bitmap_id);
        }
  
        /* The first time we create the GNU bitmap and mask,
--- 7362,7391 ----
        /* Create the GNU bitmap and mask if necessary.  */
        if (FRAME_X_DISPLAY_INFO (f)->icon_bitmap_id < 0)
        {
+         int rc = -1;
+ 
  #if defined (HAVE_XPM) && defined (HAVE_X_WINDOWS)
! #ifdef USE_GTK
!         if (xg_set_icon_from_xpm_data (f, gnu_xpm_bits))
!           return 0;
  #else
!         rc = x_create_bitmap_from_xpm_data (f, gnu_xpm_bits);
!         if (rc != -1)
!           FRAME_X_DISPLAY_INFO (f)->icon_bitmap_id = rc;
! #endif /* USE_GTK */
! #endif /* defined (HAVE_XPM) && defined (HAVE_X_WINDOWS) */
! 
!         /* If all else fails, use the (black and white) xbm image. */
!         if (rc == -1)
!           {
!             rc = x_create_bitmap_from_data (f, gnu_xbm_bits,
!                                             gnu_xbm_width, gnu_xbm_height);
!             if (rc == -1)
!               return 1;
! 
!             FRAME_X_DISPLAY_INFO (f)->icon_bitmap_id = rc;
!             x_create_bitmap_mask (f, FRAME_X_DISPLAY_INFO 
(f)->icon_bitmap_id);
!           }
        }
  
        /* The first time we create the GNU bitmap and mask,




reply via email to

[Prev in Thread] Current Thread [Next in Thread]