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/uri_entry.c | |
parent | 0a987e0a95b3473f8bc5e70455c92232d9990114 (diff) |
contact: make contacts re-entrant
Diffstat (limited to 'modules/gtk/uri_entry.c')
-rw-r--r-- | modules/gtk/uri_entry.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/gtk/uri_entry.c b/modules/gtk/uri_entry.c index 601bf83..0ca1a3d 100644 --- a/modules/gtk/uri_entry.c +++ b/modules/gtk/uri_entry.c @@ -18,6 +18,7 @@ */ GtkWidget *uri_combo_box_new(void) { + struct contacts *contacts = baresip_contacts(); struct le *le; GtkEntry *uri_entry; GtkWidget *uri_combobox; @@ -26,7 +27,7 @@ GtkWidget *uri_combo_box_new(void) uri_entry = GTK_ENTRY(gtk_bin_get_child(GTK_BIN(uri_combobox))); gtk_entry_set_activates_default(uri_entry, TRUE); - 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; gtk_combo_box_text_append_text( GTK_COMBO_BOX_TEXT(uri_combobox), |