Re: custom gtk container



Am Donnerstag, den 09.07.2009, 14:00 +0200 schrieb dexter:
> Hm... have you tested this patch? Because it seems that it's not working 
> . At least for me...
> 
> Though here is what is working:
> 
>       BaseClassType *const base = static_cast<BaseClassType*>(
>           g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the 
> parent class of the object class (The original underlying C class).
>       );
> 
> -    //Call the original underlying C function:
> +    if(G_OBJECT_CLASS_TYPE(base) == Gtk::Container::get_base_type())
> +      return;
> +
>       if(base && base->remove)
>         (*base->remove)(self, p0);

I already made a very similar change to that effect yesterday on master,
albeit for a different reason. :-)  In any case, I think the git master
branch of gtkmm should work now.

--Daniel




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