7362 |
/* Create the GNU bitmap and mask if necessary. */ |
/* Create the GNU bitmap and mask if necessary. */ |
7363 |
if (FRAME_X_DISPLAY_INFO (f)->icon_bitmap_id < 0) |
if (FRAME_X_DISPLAY_INFO (f)->icon_bitmap_id < 0) |
7364 |
{ |
{ |
7365 |
|
int rc = -1; |
7366 |
|
|
7367 |
#if defined (HAVE_XPM) && defined (HAVE_X_WINDOWS) |
#if defined (HAVE_XPM) && defined (HAVE_X_WINDOWS) |
7368 |
FRAME_X_DISPLAY_INFO (f)->icon_bitmap_id |
#ifdef USE_GTK |
7369 |
= x_create_bitmap_from_xpm_data (f, gnu_bits); |
if (xg_set_icon_from_xpm_data (f, gnu_xpm_bits)) |
7370 |
|
return 0; |
7371 |
#else |
#else |
7372 |
FRAME_X_DISPLAY_INFO (f)->icon_bitmap_id |
rc = x_create_bitmap_from_xpm_data (f, gnu_xpm_bits); |
7373 |
= x_create_bitmap_from_data (f, gnu_bits, |
if (rc != -1) |
7374 |
gnu_width, gnu_height); |
FRAME_X_DISPLAY_INFO (f)->icon_bitmap_id = rc; |
7375 |
#endif /* (HAVE_XPM) && defined (HAVE_X_WINDOWS) */ |
#endif /* USE_GTK */ |
7376 |
x_create_bitmap_mask (f, FRAME_X_DISPLAY_INFO (f)->icon_bitmap_id); |
#endif /* defined (HAVE_XPM) && defined (HAVE_X_WINDOWS) */ |
7377 |
|
|
7378 |
|
/* If all else fails, use the (black and white) xbm image. */ |
7379 |
|
if (rc == -1) |
7380 |
|
{ |
7381 |
|
rc = x_create_bitmap_from_data (f, gnu_xbm_bits, |
7382 |
|
gnu_xbm_width, gnu_xbm_height); |
7383 |
|
if (rc == -1) |
7384 |
|
return 1; |
7385 |
|
|
7386 |
|
FRAME_X_DISPLAY_INFO (f)->icon_bitmap_id = rc; |
7387 |
|
x_create_bitmap_mask (f, FRAME_X_DISPLAY_INFO (f)->icon_bitmap_id); |
7388 |
|
} |
7389 |
} |
} |
7390 |
|
|
7391 |
/* The first time we create the GNU bitmap and mask, |
/* The first time we create the GNU bitmap and mask, |