summaryrefslogtreecommitdiff
path: root/data.c
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2022-08-17 12:37:05 +0200
committerxengineering <me@xengineering.eu>2022-08-19 12:13:49 +0200
commitc584fa579ab1ce12e162580a6e443b9035dd3f88 (patch)
tree15f08a4deb3577f28cd4cadbab7747d3012f55d2 /data.c
parente7dd56d2ac25afccf578454e06f02f45187248b9 (diff)
downloadlimox-c584fa579ab1ce12e162580a6e443b9035dd3f88.tar
limox-c584fa579ab1ce12e162580a6e443b9035dd3f88.tar.zst
limox-c584fa579ab1ce12e162580a6e443b9035dd3f88.zip
Add new chat page creation
Diffstat (limited to 'data.c')
-rw-r--r--data.c7
1 files changed, 4 insertions, 3 deletions
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();
}