From c584fa579ab1ce12e162580a6e443b9035dd3f88 Mon Sep 17 00:00:00 2001 From: xengineering Date: Wed, 17 Aug 2022 12:37:05 +0200 Subject: Add new chat page creation --- data.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'data.c') diff --git a/data.c b/data.c index e9c4039..e2bfc30 100644 --- a/data.c +++ b/data.c @@ -19,7 +19,8 @@ typedef struct _roster_item_t { const char* name; const char* jid; subscription_t sub; - void* widget; // GUI widget as generic void* + void* widget; // the roster item in the contact list view + void* page_widget; // the chat page corresponding to this roster item struct _roster_item_t* next; } roster_item_t; @@ -59,7 +60,7 @@ void add_roster_item(const char* jid, const char* subscription, const char* name } // notify GUI - void* widget = gui_add_roster_item(jid, subscription, name); - item->widget = widget; // adds pointer to GUI widget to roster_item_t + item->widget = gui_add_roster_item(jid, subscription, name); + item->page_widget = gui_add_chat(); } -- cgit v1.2.3-70-g09d2