diff options
author | Alfred E. Heggestad <aeh@db.org> | 2016-07-24 18:00:40 +0200 |
---|---|---|
committer | Alfred E. Heggestad <aeh@db.org> | 2016-07-24 18:00:40 +0200 |
commit | 713f55a1f9958222f85238bde40482b566cf040e (patch) | |
tree | 7ca0800a14cec6f9cbe6794a3bdcea9b42001db7 /modules/gtk/gtk_mod.c | |
parent | 0a987e0a95b3473f8bc5e70455c92232d9990114 (diff) |
contact: make contacts re-entrant
Diffstat (limited to 'modules/gtk/gtk_mod.c')
-rw-r--r-- | modules/gtk/gtk_mod.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/gtk/gtk_mod.c b/modules/gtk/gtk_mod.c index 5e01882..55559d8 100644 --- a/modules/gtk/gtk_mod.c +++ b/modules/gtk/gtk_mod.c @@ -142,12 +142,13 @@ static void menu_on_dial_contact(GtkMenuItem *menuItem, gpointer arg) static void init_contacts_menu(struct gtk_mod *mod) { + struct contacts *contacts = baresip_contacts(); struct le *le; GtkWidget *item; GtkMenuShell *contacts_menu = GTK_MENU_SHELL(mod->contacts_menu); /* Add contacts to submenu */ - for (le = list_head(contact_list()); le; le = le->next) { + for (le = list_head(contact_list(contacts)); le; le = le->next) { struct contact *c = le->data; item = gtk_menu_item_new_with_label(contact_str(c)); gtk_menu_shell_append(contacts_menu, item); |