diff options
author | xengineering <me@xengineering.eu> | 2022-08-17 12:37:05 +0200 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2022-08-19 12:13:49 +0200 |
commit | c584fa579ab1ce12e162580a6e443b9035dd3f88 (patch) | |
tree | 15f08a4deb3577f28cd4cadbab7747d3012f55d2 /data.c | |
parent | e7dd56d2ac25afccf578454e06f02f45187248b9 (diff) | |
download | limox-c584fa579ab1ce12e162580a6e443b9035dd3f88.tar limox-c584fa579ab1ce12e162580a6e443b9035dd3f88.tar.zst limox-c584fa579ab1ce12e162580a6e443b9035dd3f88.zip |
Add new chat page creation
Diffstat (limited to 'data.c')
-rw-r--r-- | data.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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(); } |