Mercurial > hg > xemacs-beta
diff 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 |
line wrap: on
line diff
--- a/src/balloon_help.c Mon Aug 13 10:27:41 2007 +0200 +++ b/src/balloon_help.c Mon Aug 13 10:28:48 2007 +0200 @@ -488,6 +488,24 @@ ============================================================================*/ +static void +balloon_help_destroy (void) +{ + assert (b_dpy != NULL); + b_dpy = NULL; + + destroy_window (b_dpy, b_win); + destroy_gc (b_dpy, b_gc); + + destroy_gc (b_dpy, b_shineGC); + destroy_gc (b_dpy, b_shadowGC); + + destroy_pixmap_mask (); + destroy_gc (b_dpy, b_maskGC); + + if (b_timer) XtRemoveTimeOut (b_timer); +} + void balloon_help_create (Display* dpy, Pixel fg, Pixel bg, Pixel shine, Pixel shadow, @@ -519,24 +537,6 @@ } void -balloon_help_destroy (void) -{ - assert (b_dpy != NULL); - b_dpy = NULL; - - destroy_window (b_dpy, b_win); - destroy_gc (b_dpy, b_gc); - - destroy_gc (b_dpy, b_shineGC); - destroy_gc (b_dpy, b_shadowGC); - - destroy_pixmap_mask (); - destroy_gc (b_dpy, b_maskGC); - - if (b_timer) XtRemoveTimeOut (b_timer); -} - -void balloon_help_set_delay (unsigned long milliseconds) { b_delay = milliseconds;