1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2025-01-08 12:55:32 +00:00

mm-call,call-display: Add more debugging output for state changes

This commit is contained in:
purism 2018-09-27 08:37:14 +00:00
parent 635b3f74b8
commit 1c37b39398
2 changed files with 14 additions and 10 deletions

View file

@ -177,6 +177,7 @@ call_state_changed_cb (CallsCallDisplay *self,
calls_call_state_to_string (state_str, state); calls_call_state_to_string (state_str, state);
gtk_label_set_text (self->status, state_str->str); gtk_label_set_text (self->status, state_str->str);
g_debug ("Call state changed to `%s'", state_str->str);
g_string_free (state_str, TRUE); g_string_free (state_str, TRUE);
switch (state) switch (state)

View file

@ -153,12 +153,13 @@ struct CallsMMCallStateMap
{ {
MMCallState mm; MMCallState mm;
CallsCallState calls; CallsCallState calls;
const gchar *name;
}; };
static const struct CallsMMCallStateMap STATE_MAP[] = { static const struct CallsMMCallStateMap STATE_MAP[] = {
#define row(MMENUM,CALLSENUM) \ #define row(MMENUM,CALLSENUM) \
{ MM_CALL_STATE_##MMENUM, CALLS_CALL_STATE_##CALLSENUM } \ { MM_CALL_STATE_##MMENUM, CALLS_CALL_STATE_##CALLSENUM, #MMENUM } \
row (DIALING, DIALING), row (DIALING, DIALING),
row (RINGING_OUT, ALERTING), row (RINGING_OUT, ALERTING),
@ -191,6 +192,8 @@ state_changed_cb (CallsMMCall *self,
{ {
if (map_row->mm == mm_new) if (map_row->mm == mm_new)
{ {
g_debug ("MM call state changed to `%s'",
map_row->name);
change_state (self, map_row->calls); change_state (self, map_row->calls);
return; return;
} }