| Buzztard Bt-Edit Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Implemented Interfaces | ||||
#include "bt-edit.h" struct BtObjectListModel; void bt_object_list_model_append (BtObjectListModel *model,GObject *object); GObject * bt_object_list_model_get_object (BtObjectListModel *model,GtkTreeIter *iter); BtObjectListModel * bt_object_list_model_new (gint n_columns,GType object_type,...);
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_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().
|
the model |
|
the object to append |
GObject * bt_object_list_model_get_object (BtObjectListModel *model,GtkTreeIter *iter);
The the GObject for the iter.
|
the model |
|
the iter |
BtObjectListModel * bt_object_list_model_new (gint n_columns,GType object_type,...);
Creates a list model mapping object properties to model columns.
|
number of columns |
|
the GType of the objects in the model |
|
property names for the columns |
Returns : |
the model. |