1
<!-- ##### SECTION Title ##### -->
4
<!-- ##### SECTION Short_Description ##### -->
5
A tree model for account instances
7
<!-- ##### SECTION Long_Description ##### -->
9
A #GtkTreeModel implementation for storing #TnyStoreAccount instances.
12
The implementation inherits the #GtkTreeStore, implements #GtkTreeModel and #TnyList. It can for example be used to display the accounts in a #GtkComboBox or #GtkTreeView. If, however, you want to show both the account names and the folder names in a tree view style, consider using the #TnyGtkAccountTreeModel in stead.
15
It's very important to unreference the instance you will get when doing something like this:
18
gtk_tree_model_get (model, &iter,
19
TNY_ACCOUNT_LIST_MODEL_INSTANCE_COLUMN,
22
g_object_unref (G_OBJECT(account));
24
The column is indeed a G_TYPE_OBJECT column and getting it from the #GtkTreeModel will indeed add a reference.
27
<!-- ##### SECTION See_Also ##### -->
32
<!-- ##### SECTION Stability_Level ##### -->
35
<!-- ##### MACRO TNY_TYPE_GTK_ACCOUNT_LIST_MODEL_COLUMN ##### -->
42
<!-- ##### STRUCT TnyGtkAccountListModel ##### -->
48
<!-- ##### FUNCTION tny_gtk_account_list_model_column_get_type ##### -->
56
<!-- ##### FUNCTION tny_gtk_account_list_model_new ##### -->