Mercurial > hg > xemacs-beta
comparison src/balloon_help.c @ 272:c5d627a313b1 r21-0b34
Import from CVS: tag r21-0b34
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:28:48 +0200 |
parents | 41ff10fd062f |
children | 8626e4521993 |
comparison
equal
deleted
inserted
replaced
271:c7b7086b0a39 | 272:c5d627a313b1 |
---|---|
486 | 486 |
487 /*============================================================================ | 487 /*============================================================================ |
488 | 488 |
489 ============================================================================*/ | 489 ============================================================================*/ |
490 | 490 |
491 static void | |
492 balloon_help_destroy (void) | |
493 { | |
494 assert (b_dpy != NULL); | |
495 b_dpy = NULL; | |
496 | |
497 destroy_window (b_dpy, b_win); | |
498 destroy_gc (b_dpy, b_gc); | |
499 | |
500 destroy_gc (b_dpy, b_shineGC); | |
501 destroy_gc (b_dpy, b_shadowGC); | |
502 | |
503 destroy_pixmap_mask (); | |
504 destroy_gc (b_dpy, b_maskGC); | |
505 | |
506 if (b_timer) XtRemoveTimeOut (b_timer); | |
507 } | |
508 | |
491 void | 509 void |
492 balloon_help_create (Display* dpy, | 510 balloon_help_create (Display* dpy, |
493 Pixel fg, Pixel bg, Pixel shine, Pixel shadow, | 511 Pixel fg, Pixel bg, Pixel shine, Pixel shadow, |
494 XFontStruct* font) | 512 XFontStruct* font) |
495 { | 513 { |
514 | 532 |
515 b_screenWidth = DisplayWidth (b_dpy, DefaultScreen(b_dpy)); | 533 b_screenWidth = DisplayWidth (b_dpy, DefaultScreen(b_dpy)); |
516 b_screenHeight = DisplayHeight (b_dpy, DefaultScreen(b_dpy)); | 534 b_screenHeight = DisplayHeight (b_dpy, DefaultScreen(b_dpy)); |
517 | 535 |
518 b_lastShape = SHAPE_CONE_FREE; | 536 b_lastShape = SHAPE_CONE_FREE; |
519 } | |
520 | |
521 void | |
522 balloon_help_destroy (void) | |
523 { | |
524 assert (b_dpy != NULL); | |
525 b_dpy = NULL; | |
526 | |
527 destroy_window (b_dpy, b_win); | |
528 destroy_gc (b_dpy, b_gc); | |
529 | |
530 destroy_gc (b_dpy, b_shineGC); | |
531 destroy_gc (b_dpy, b_shadowGC); | |
532 | |
533 destroy_pixmap_mask (); | |
534 destroy_gc (b_dpy, b_maskGC); | |
535 | |
536 if (b_timer) XtRemoveTimeOut (b_timer); | |
537 } | 537 } |
538 | 538 |
539 void | 539 void |
540 balloon_help_set_delay (unsigned long milliseconds) | 540 balloon_help_set_delay (unsigned long milliseconds) |
541 { | 541 { |