Top | ![]() |
![]() |
![]() |
![]() |
Allows to bind gobject properties to model columns. Does not copy the data and thus keeps the widget always up-to-date.
void bt_object_list_model_insert (BtObjectListModel *model
,GObject *object
,gint position
);
Insert a new row to the model
. The object
has to have the same type as
given to bt_object_list_model_new()
.
void bt_object_list_model_append (BtObjectListModel *model
,GObject *object
);
Append a new row to the model
. The object
has to have the same type as
given to bt_object_list_model_new()
.
GObject * bt_object_list_model_get_object (BtObjectListModel *model
,GtkTreeIter *iter
);
The the GObject for the iter.
BtObjectListModel * bt_object_list_model_new (gint n_columns
,GType object_type
,...
);
Creates a list model mapping object properties to model columns.
n_columns |
number of columns |
|
object_type |
the GType of the objects in the model |
|
... |
property names for the columns |