diff options
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(); } |