Re: GTK_TYPE_BOXED



Thanks, that was the lead I needed.

So, if you were deriving a type from GTK_TYPE_BOXED
in gtk+-1.2, with the requisite GtkTypeInfo structure
and gtk_type_unique call, for gtk-2.0 you just call

newtype = g_boxed_type_register_static( name, copy_func, free_func );

and you're all set, no need to fill in a  GTypeInfo structure.


Thanks again,


Ralph Walden



Havoc Pennington wrote:
> 
> Ralph Walden <rwalden tripos com> writes:
> > Can anyone comment on the changes between 1.2 and 2.0 that
> > woud break code using
> >
> > gtk_type_unique(GTK_TYPE_BOXED, &some_subclass_info );
> >
> > in the _get_type function for a derived type?
> >
> 
> You probably want g_boxed_type_register_static() instead.
> 
> Havoc
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list

-- 

Ralph E. Walden
Tripos, Inc.
rwalden tripos com



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