express: Store channel opcount in each channel separately

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2015-02-20 11:30:08 -05:00
parent 6c195d3e38
commit 3bd87f8739
1 changed files with 3 additions and 3 deletions

View File

@ -33,6 +33,7 @@ struct _Channel
Evas_Object *o_dismiss;
Eina_Bool visible : 1;
Eina_List *users;
int opcount;
} userlist;
struct
@ -876,7 +877,6 @@ void
_channel_userlist_user_append(Channel *chl, const char *user, Eina_Bool op)
{
char users[PATH_MAX];
static int opcount;
if ((!user) || (strlen(user) < 1)) return;
@ -907,11 +907,11 @@ _channel_userlist_user_append(Channel *chl, const char *user, Eina_Bool op)
elm_list_item_sorted_insert(chl->userlist.o_list, user, icon, NULL,
NULL, &data, _cb_userlist_compare);
opcount++;
chl->userlist.opcount++;
}
snprintf(users, sizeof(users), "(%d ops, %d total)",
opcount, eina_list_count(chl->userlist.users));
chl->userlist.opcount, eina_list_count(chl->userlist.users));
elm_object_text_set(chl->userlist.o_label, users);
}