[haiku-development] Re: Hello, and a BBitmap question.

  • From: James Kim <jkim202@xxxxxxxxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sat, 07 Jun 2008 19:13:03 +1200

Thanks. RemoveChild is returning 0.


Regards,

James

On Sat, 2008-06-07 at 02:09 -0500, Rene Gollent wrote:
> On Sat, Jun 7, 2008 at 2:00 AM, James Kim <jkim202@xxxxxxxxxxxxxxxxx> wrote:
> > Oops, I made a mistake there. It should have been fParent calling
> > RemoveChild().
> >
> > Anyway, I tried with your code and it gets in an infinite loop,
> > printing:
> >
> > 1414141414141414141414141414141414141414141414141414141414141414...
> >
> > And I am quite sure it's not the problem with BLayout::View() because I
> > have tested with a test View and it still can only add but not remove.
> >
> >
> 
> From a quick glance at BView's code, it does seem to matter if it's in
> a layout...RemoveChild simply calls the view's RemoveSelf() method,
> which, if the child belongs to a layout results in BLayout::RemoveView
> being called. What is RemoveChild returning?
> 
> Regards,
> 
> Rene
> 


Other related posts: