FLTK logo

Re: [fltk.coredev] Addition to Fl_Group docs

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.coredev  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: Addition to Fl_Group docs Albrecht Schlosser Sep 25, 2022  
 
On 9/23/22 13:48 Greg Ercolano wrote:
    OK, so sounds like the proposed doc change should read instead:

+
+  To remove a widget from the group and destroy it, as of 1.3.x you can
+  simply use <tt>delete some_widget;</tt> and its destructor triggers
+  the immediate removal from the parent group.


    If so, I'll make that change and commit.

Yep, looks good, +1.

FYI: on the contrary, Fl::delete_widget() which *schedules* the deletion of the widget after return from the event loop is no longer necessary and has its own issues. Since 1.3.x it is fine to delete widgets directly as it would be documented above. Fl::delete_widget() was only *necessary* in 1.1.5 and later and should never be required since 1.3.x.

    I figure our docs for Fl::delete_widget() covers this history well enough.

OK, I didn't want to suggest to change it.

--
You received this message because you are subscribed to the Google Groups "fltk.coredev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkcoredev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkcoredev/1f0b68b6-6559-6da8-02bc-24b7b7cbd6b5%40online.de.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.