Updated to new tox API. Fixed profile loading.

This commit is contained in:
Michael Raitza 2015-08-26 16:48:33 +02:00
parent ed96d36711
commit b376432f04
9 changed files with 248 additions and 216 deletions

View file

@ -40,9 +40,12 @@ twc_bar_item_away(void *data,
if (!profile || !(profile->tox))
return NULL;
char *status = NULL;;
switch (tox_get_self_user_status(profile->tox))
char *status;
switch (tox_self_get_status(profile->tox))
{
case TOX_USER_STATUS_NONE:
status = NULL;
break;
case TOX_USER_STATUS_BUSY:
status = strdup("busy");
break;