Enlightenment CVS committal
Author : rbdpngn
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src
Modified Files:
ewl_tooltip.c ewl_tooltip.h
Log Message:
Cleanup timers when the widget is destroyed.
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_tooltip.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -3 -r1.15 -r1.16
--- ewl_tooltip.c 18 Aug 2004 03:15:21 -0000 1.15
+++ ewl_tooltip.c 26 Aug 2004 17:40:09 -0000 1.16
@@ -58,6 +58,8 @@
ewl_tooltip_parent_mouse_move_cb, t);
ewl_callback_append (parent, EWL_CALLBACK_FOCUS_OUT,
ewl_tooltip_parent_focus_out_cb, t);
+ ewl_callback_append (w, EWL_CALLBACK_DESTROY,
+ ewl_tooltip_destroy_cb, t);
/*
* If the parent is clicked we don't want to display
@@ -183,3 +185,19 @@
DLEAVE_FUNCTION(DLEVEL_STABLE);
}
+
+void
+ewl_tooltip_destroy_cb(Ewl_Widget * w, void *ev_data, void *user_data)
+{
+ Ewl_Tooltip *t = w;
+
+ DENTER_FUNCTION(DLEVEL_STABLE);
+ DCHECK_PARAM_PTR("w", w);
+
+ if (t->timer) {
+ ecore_timer_del (t->timer);
+ t->timer = NULL;
+ }
+
+ DLEAVE_FUNCTION(DLEVEL_STABLE);
+}
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_tooltip.h,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- ewl_tooltip.h 18 Aug 2004 02:48:45 -0000 1.9
+++ ewl_tooltip.h 26 Aug 2004 17:40:09 -0000 1.10
@@ -40,5 +40,6 @@
void *user_data);
void ewl_tooltip_parent_focus_out_cb (Ewl_Widget * w, void *ev_data,
void *user_data);
+void ewl_tooltip_destroy_cb(Ewl_Widget * w, void *ev_data, void *user_data);
#endif /* __EWL_TOOLTIP_H__ */
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs