summaryrefslogtreecommitdiff
path: root/data.c
diff options
context:
space:
mode:
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();
}