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:
parent
3aebfcc6d1
commit
03d960ccaf
1 changed files with 1 additions and 1 deletions
|
@ -132,13 +132,13 @@ add_call (CallsDummyOrigin *self, const gchar *number, gboolean inbound)
|
||||||
g_assert (dummy_call != NULL);
|
g_assert (dummy_call != NULL);
|
||||||
|
|
||||||
call = CALLS_CALL (dummy_call);
|
call = CALLS_CALL (dummy_call);
|
||||||
|
g_signal_emit_by_name (CALLS_ORIGIN (self), "call-added", call);
|
||||||
g_signal_connect_swapped (call, "state-changed",
|
g_signal_connect_swapped (call, "state-changed",
|
||||||
G_CALLBACK (call_state_changed_cb),
|
G_CALLBACK (call_state_changed_cb),
|
||||||
self);
|
self);
|
||||||
|
|
||||||
self->calls = g_list_append (self->calls, dummy_call);
|
self->calls = g_list_append (self->calls, dummy_call);
|
||||||
|
|
||||||
g_signal_emit_by_name (CALLS_ORIGIN (self), "call-added", call);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue