1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-06-28 14:49:30 +00:00

contact-box: Do not hardcode length of match_fields[]

This commit is contained in:
Evangelos Ribeiro Tzaras 2021-09-21 15:23:47 +02:00
parent ab4094f2d4
commit d936a4572d

View file

@ -166,7 +166,7 @@ calls_contacts_box_init (CallsContactsBox *self)
gtk_widget_init_template (GTK_WIDGET (self));
self->search_query = folks_simple_query_new ("", query_fields, 5);
self->search_query = folks_simple_query_new ("", query_fields, G_N_ELEMENTS (query_fields));
gtk_list_box_set_header_func (GTK_LIST_BOX (self->contacts_listbox),
(GtkListBoxUpdateHeaderFunc) header_cb,