src: Add old state as argument to CallsCall's state-changed signal

This commit is contained in:
Bob Ham
2018-11-09 16:19:23 +00:00
parent 74c3987ce1
commit 027c49e8bd
6 changed files with 47 additions and 12 deletions
+10 -1
View File
@@ -87,9 +87,18 @@ static void
change_state (CallsOfonoCall *self,
CallsCallState state)
{
CallsCallState old_state = self->state;
if (old_state == state)
{
return;
}
self->state = state;
g_signal_emit_by_name (CALLS_CALL (self),
"state-changed", state);
"state-changed",
state,
old_state);
}