Re: Unable to instantiate GtkTreeModelSort with g_object_new.
- From: Jeff Franks <jcf tpg com au>
- Cc: Jonathan Blandford <jrb redhat com>,	Gtk+ Developers <gtk-devel-list gnome org>
- Subject: Re: Unable to instantiate GtkTreeModelSort with g_object_new.
- Date: Tue, 20 Nov 2001 02:02:43 +1100
Owen Taylor wrote:
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)
The problem is that a language binding cannot instantiate an instance of 
GtkTreeModelSort using g_object_new because there is no way to set the 
child_model. The function 'gtk_tree_model_sort_set_model' is a static 
function declared in gtktreemodelsort.c. It gets called from 
'gtk_tree_model_sort_new' to set the model. Either this function needs 
to be exported so a language binding can call it or a "model" property 
needs to be installed in gtk_tree_model_sort_class_init() that can be 
set in a call to g_object_new or  g_object_set.
Jeff.
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]