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
+12 -3
View File
@@ -81,12 +81,21 @@ get_state (CallsCall *call)
static void
change_state (CallsMMCall *self,
MMCallState state)
change_state (CallsMMCall *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);
}