TnyAccountTreeModel is now a TnyListIface



The TnyAccounTreeModel now implements both GtkTreeModelIface and
TnyListIface (so it's a lot like the TnyMsgHeaderListModel).

This means coding something like this works:

GtkTreeModel *mailbox_model = tny_account_tree_model_new ();
TnyListIface *accounts = TNY_LIST_IFACE (mailbox_model);

tny_account_store_iface_get_accounts (account_store, accounts,
	TNY_ACCOUNT_STORE_IFACE_STORE_ACCOUNTS);

gtk_tree_view_set_model (GTK_TREE_VIEW (priv->mailbox_view), 
		mailbox_model);


It should also be possible to iterate the accounts and stuff like that.
But this hasn't yet been tested a lot. Feel free to help me debug the
work that has been done in this area. Not all of it was simple code,
yadi yada.


-- 
Philip Van Hoof, software developer at x-tend 
home: me at pvanhoof dot be 
gnome: pvanhoof at gnome dot org 
work: vanhoof at x-tend dot be 
http://www.pvanhoof.be - http://www.x-tend.be




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