1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-12-04 20:07:36 +00:00

calls-manager: Connect listener past the list model filters

The list model filters connect signal handlers for item-changed to
refilter the list models.

In order to enable protocols based on what the origin supports
`on_origins_changed` needs these filtered results. Since it is a signal
handler by itself connect it late so it runs later in the filter chain.

Closes: https://gitlab.gnome.org/GNOME/calls/-/issues/601
This commit is contained in:
Guido Günther 2024-02-14 17:41:00 +01:00 committed by Evangelos Ribeiro Tzaras
parent e2025dabfb
commit 041921ca26

View file

@ -601,12 +601,6 @@ calls_manager_init (CallsManager *self)
self->origins = g_list_store_new (G_TYPE_LIST_MODEL); /* list of lists */
self->origins_flat = gtk_flatten_list_model_new (CALLS_TYPE_ORIGIN, G_LIST_MODEL (self->origins));
g_signal_connect_object (self->origins_flat,
"items-changed",
G_CALLBACK (on_origins_changed),
self,
0);
providers = calls_plugin_manager_get_providers (plugin_manager);
g_signal_connect_object (providers,
"items-changed",
@ -633,6 +627,12 @@ calls_manager_init (CallsManager *self)
f_list);
}
g_signal_connect_object (self->origins_flat,
"items-changed",
G_CALLBACK (on_origins_changed),
self,
0);
self->dial_actions_by_protocol = g_hash_table_new_full (g_str_hash,
g_str_equal,
NULL,