Re: Implementing containers



On 9/22/07, Paul Davis <paul linuxaudiosystems com> wrote:
> On Sat, 2007-09-22 at 12:29 -0500, Mark Tilford wrote:
> > Any luck on figuring this out?
> >
> > On 9/11/07, Milosz Derezynski <internalerror gmail com> wrote:
> > > Yeah but Gtk::Container does a class vfunc override, so it should
> > > never be called. I'm looking for the problem deeper now simply because
> > > it bugs me that it exists (shouldn't be there!)
>
> Gtk::Container is an abstract class. It does nothing more than provide a
> dummy "remove" implementation. A derived widget (e.g Box, Table, Bin
> etc) has to provide its own implementation (and in the gtkmm versions,
> they do).
>
> --p

Okay, how do I implement it?  The sample program mentioned has

void MyContainer::on_remove(Gtk::Widget* child)

and even if I manually call

signal_remove().connect (sigc::mem_fun (*this, &MyContainer::on_remove));

that function doesn't get called.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]