Re: Unable to instantiate GtkTreeModelSort with g_object_new.



Owen Taylor wrote:

Jeff Franks <jcf tpg com au> writes:

Hi,

I've noticed that you can't instantiate GtkTreeModelSort with
g_object_new as there is no way the set the child_model. This wouldn't
be an problem if the gtk_tree_model_sort_set_model() function declared
in gtktreemodelsort.c were exported.


g_object_new (GTK_TYPE_TREE_MODEL_SORT, "model", model, NULL);


I couldn't find any reference to a "model" property for GtkTreeModelSort so I didn't know there was one.

Jeff.






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