1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-11-15 12:55:36 +00:00

dummy: fix infinite ringtone

Fixes #238 by making sure the call-added signal is emitted earlier.
This commit is contained in:
Evangelos Ribeiro Tzaras 2021-03-11 23:31:36 +01:00
parent 3aebfcc6d1
commit 03d960ccaf

View file

@ -132,13 +132,13 @@ add_call (CallsDummyOrigin *self, const gchar *number, gboolean inbound)
g_assert (dummy_call != NULL);
call = CALLS_CALL (dummy_call);
g_signal_emit_by_name (CALLS_ORIGIN (self), "call-added", call);
g_signal_connect_swapped (call, "state-changed",
G_CALLBACK (call_state_changed_cb),
self);
self->calls = g_list_append (self->calls, dummy_call);
g_signal_emit_by_name (CALLS_ORIGIN (self), "call-added", call);
}