Author: AlbrechtS
Date: 2009-07-25 02:56:24 -0700 (Sat, 25 Jul 2009)
New Revision: 6835
Log:
Added a note about removing a widget from its parent group or window before
calling Fl::delete_widget() (STR #2226).


Modified:
   branches/branch-1.1/documentation/Fl.html

Modified: branches/branch-1.1/documentation/Fl.html
===================================================================
--- branches/branch-1.1/documentation/Fl.html   2009-07-23 23:08:12 UTC (rev 
6834)
+++ branches/branch-1.1/documentation/Fl.html   2009-07-25 09:56:24 UTC (rev 
6835)
@@ -546,11 +546,14 @@
 <H4><A NAME="Fl.delete_widget">void delete_widget(Fl_Widget*);</A></H4>
 
 <p>Schedules a widget for deletion at the next call to the event loop.
-Use this method to delete a widget inside a callback function. 
-To avoid early deletion of widgets, this function
+Use this method to delete a widget inside a callback function. As with
+normal widget deletion it is your responsibility to remove() the widget
+from any parent group or window before calling this.</p>
+
+<p>To avoid early deletion of widgets, this function
 should be called toward the end of a callback and only after any call 
-to the event loop (<tt>Fl:wait()</tt>, <tt>Fl::flush()</tt>, 
-<tt>fl_ask()</tt>, etc).</p>
+to the event loop (<tt>Fl::wait()</tt>, <tt>Fl::flush()</tt>, 
+<tt>Fl::check()</tt>, <tt>fl_ask()</tt>, etc.).</p>
 
 <p>When deleting groups or windows, you must only delete the group or
 window widget and not the individual child widgets.</p>

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to