Re: [gtk-list] er...subclassing related question




On Tue, 21 Jul 1998, Jason A. Pfeil wrote:
> 
> I see nowhere in GtkToggleButton's code that excuses it from having
> gtk_container_add_unimplemented called for it, but for some reason I am
> blessed (cursed?) with that situation.  Can anyone offer any ideas for
> help, or point me to a better example for subclassing?
> 

It looks kind of like you aren't doing the things in class_init. Look at a
class_init to see what you need to do. Also make sure you're doing
get_type correctly. Another possibility is that you have the wrong base
class somewhere. Make sure you have it right in the object and class
structs, and in the call to base_class_get_type() in get_type. 

If you don't see the problem you'll probably need to make the code
available for people to look at. 

Havoc Pennington 



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