diff options
Diffstat (limited to '')
-rw-r--r-- | src/ui.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -14,6 +14,7 @@ G_DEFINE_AUTOPTR_CLEANUP_FUNC(gchar, g_free) struct dc_ui_data { GtkBuilder * b; GKeyFile * k; + struct dc_client * c; }; /* # configuration file - loaded at startup, saved at exit, comments persist - description: @@ -77,9 +78,9 @@ void dc_ui_spawn_channel (struct dc_channel * c /* needs a functional guild or s GtkTreeIter i; if (!c) { gtk_tree_store_clear(l); - for (size_t i = 0; i < c->guild->client->guilds_length; i++) { - c->guild->client->guilds[i]->is_iter = FALSE; - struct dc_channel * ch = c->guild->client->guilds[i]->channel; + for (size_t i = 0; i < d->c->guilds_length; i++) { + d->c->guilds[i]->is_iter = FALSE; + struct dc_channel * ch = d->c->guilds[i]->channel; while (ch) { ch->is_iter = FALSE; ch = ch->next; |