Re: Unable to instantiate GtkTreeModelSort with g_object_new.



Jeff Franks <jcf tpg com au> writes:

> Jonathan Blandford wrote:
> 
> >Tim Janik <timj gtk org> writes:
> >
> >There is:
> >
> >  g_object_class_install_property (object_class,
> >                                   PROP_MODEL,
> >                                   g_param_spec_object ("model",
> >							_("TreeModelSort Model"),
> >							_("The model for the TreeModelSort to sort"),
> >							GTK_TYPE_TREE_MODEL,
> >							G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
> >
> Surely, GtkTreeModelSort needs to install a "model" property not user code.

I think you misunderstood Jonathan ... he is quoting part of
gtktreemodelsort.c, not saying that the app should do this.
(It wouldn't work anyways ... properties have to be handled
by class->get/set_property)

Regards,
                                        Owen



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