diff options
author | Xavier Claessens <xclaesse@gmail.com> | 2007-05-20 18:26:38 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2007-05-20 18:26:38 +0800 |
commit | 49676b7823685463409a3653e00ce4707f00d226 (patch) | |
tree | dc93aa2b5cd8e546bc6efdbf2402bbc37bde7e5b /libempathy-gtk/gossip-contact-list-store.h | |
parent | 1ff555e581a89646fa252706d41ae822d1e023e4 (diff) | |
download | gsoc2013-empathy-49676b7823685463409a3653e00ce4707f00d226.tar gsoc2013-empathy-49676b7823685463409a3653e00ce4707f00d226.tar.gz gsoc2013-empathy-49676b7823685463409a3653e00ce4707f00d226.tar.bz2 gsoc2013-empathy-49676b7823685463409a3653e00ce4707f00d226.tar.lz gsoc2013-empathy-49676b7823685463409a3653e00ce4707f00d226.tar.xz gsoc2013-empathy-49676b7823685463409a3653e00ce4707f00d226.tar.zst gsoc2013-empathy-49676b7823685463409a3653e00ce4707f00d226.zip |
Allow to set custom function for getting groups of a contact. Make
2007-05-20 Xavier Claessens <xclaesse@gmail.com>
* libempathy-gtk/gossip-contact-list-store.c: Allow to set custom
function for getting groups of a contact. Make possible to have groups
for presence or role/affiliation in chatroom for example.
* libempathy-gtk/gossip-contact-list-store.h: Allow to set custom
function to handle DnD of contact. Useful when a custom function is set
for groups.
* src/empathy-chat-main.c: Minor fix.
* TODO:
* po/POTFILES.in: Updated.
svn path=/trunk/; revision=76
Diffstat (limited to 'libempathy-gtk/gossip-contact-list-store.h')
-rw-r--r-- | libempathy-gtk/gossip-contact-list-store.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libempathy-gtk/gossip-contact-list-store.h b/libempathy-gtk/gossip-contact-list-store.h index 66d0b46ba..b2131bcab 100644 --- a/libempathy-gtk/gossip-contact-list-store.h +++ b/libempathy-gtk/gossip-contact-list-store.h @@ -81,6 +81,8 @@ struct _GossipContactListStore { struct _GossipContactListStoreClass { GtkTreeStoreClass parent_class; }; +typedef GList * (*GossipContactGroupsFunc) (GossipContact *contact, + gpointer user_data); GType gossip_contact_list_store_get_type (void) G_GNUC_CONST; GossipContactListStore * gossip_contact_list_store_new (EmpathyContactList *list_iface); @@ -108,6 +110,11 @@ gboolean gossip_contact_list_store_search_equal_func (GtkTree const gchar *key, GtkTreeIter *iter, gpointer search_data); +void gossip_contact_list_store_set_contact_groups_func (GossipContactListStore*store, + GossipContactGroupsFunc func, + gpointer user_data); +void gossip_contact_list_store_update_contact_groups (GossipContactListStore *store, + GossipContact *contact); G_END_DECLS |