diff src/gnu.h @ 66931:1a573209abf9

* xfns.c (xg_set_icon_from_xpm_data): New function. * gnu.h (gnu_xpm_bits): Renamed from gnu_bits. (gnu_xbm_bits): Renamed from gnu_bits (xbm version). * xterm.c (x_bitmap_icon): Use the xpm if available.
author Chong Yidong <cyd@stupidchicken.com>
date Wed, 16 Nov 2005 16:38:48 +0000
parents f48f5b0d7e1e
children fb451bd50b89 7beb78bc1f8e
line wrap: on
line diff
--- a/src/gnu.h	Wed Nov 16 16:07:47 2005 +0000
+++ b/src/gnu.h	Wed Nov 16 16:38:48 2005 +0000
@@ -1,5 +1,5 @@
 #if defined (HAVE_XPM) && defined (HAVE_X_WINDOWS)
-static char * gnu_bits[] = {
+static char * gnu_xpm_bits[] = {
 "32 32 173 2",
 "  	c None",
 ". 	c #67627D",
@@ -206,10 +206,11 @@
 "        P.P.P.P.P.P.P.P.P.P.P.P.P.P.P.P.P.P.P.P.P.P.P.P.        ",
 "                                                                ",
 "                                                                "};
-#else
-#define gnu_width 50
-#define gnu_height 50
-static unsigned char gnu_bits[] = {
+#endif /* defined (HAVE_XPM) && defined (HAVE_X_WINDOWS) */
+
+#define gnu_xbm_width 50
+#define gnu_xbm_height 50
+static unsigned char gnu_xbm_bits[] = {
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x01, 0x00, 0x00,
@@ -240,7 +241,6 @@
    0xf8, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00, 0xa0, 0x02, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00};
-#endif
 
 /* arch-tag: b57020c7-c937-4d77-8ca6-3875178d9828
    (do not change this comment) */