Re: Derived types of GnomeCanvas




Jon Trowbridge <trow@emccta.com> writes: 
> After inspecting gnome-canvas.c, I figured out to put
> 
>   GNOME_CANVAS(my_widget)->aa = 1;
> 
> into my_widget_init().
> 
> This works, but is there an officially sanctioned way of doing this
> that I missed?  What are the odds of this trick continuing to
> work with future versions of the libgnomeui?
> 

I'd say this is a pretty safe hack. There's no public API to do it
since it isn't valid to do it after canvas-construction time. 
(It could perhaps be a CONSTRUCT_ONLY object argument actually, that
would be a sane approach.)

Havoc



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