Re: Gnome::Canvas my derived group won't display



>>  
>> CCanvasGroup::CCanvasGroup(Gnome::Canvas::Group& parent, double x, double y)
>> :m_group(parent,x,y)
>>     
>
> This is rather strange. Do you want to inherit from a group, or do you
> want to have a group as member. You probably need to call the Group
> constructor, maybe like this:
>
> CCanvasGroup::CCanvasGroup(Gnome::Canvas::Group& parent, double x,
> double y)
>   
>> : Gnome::Canvas::Group(parent)
>>     
I changed that and I changed
>> 	Gnome::Canvas::Pixbuf(m_group,0,0, /*(CCanvasGroupCounter++ & 1) ? whitetux:*/blacktux);
>>     
to

Gnome::Canvas::Pixbuf(*this,0,0, /*(CCanvasGroupCounter++ & 1) ? whitetux:*/blacktux);

but still no display, but the console prints
CCanvasGroup done
So the constructor is called and terminates



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