mm-call,call-display: Add more debugging output for state changes
This commit is contained in:
@@ -177,6 +177,7 @@ call_state_changed_cb (CallsCallDisplay *self,
|
||||
|
||||
calls_call_state_to_string (state_str, state);
|
||||
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);
|
||||
|
||||
switch (state)
|
||||
|
||||
@@ -153,12 +153,13 @@ struct CallsMMCallStateMap
|
||||
{
|
||||
MMCallState mm;
|
||||
CallsCallState calls;
|
||||
const gchar *name;
|
||||
};
|
||||
|
||||
static const struct CallsMMCallStateMap STATE_MAP[] = {
|
||||
|
||||
#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 (RINGING_OUT, ALERTING),
|
||||
@@ -191,6 +192,8 @@ state_changed_cb (CallsMMCall *self,
|
||||
{
|
||||
if (map_row->mm == mm_new)
|
||||
{
|
||||
g_debug ("MM call state changed to `%s'",
|
||||
map_row->name);
|
||||
change_state (self, map_row->calls);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user