* cleanup mu_msg_str_prio
This commit is contained in:
@ -75,12 +75,20 @@ const char*
|
|||||||
mu_msg_str_prio (MuMsgPriority prio)
|
mu_msg_str_prio (MuMsgPriority prio)
|
||||||
{
|
{
|
||||||
switch (prio) {
|
switch (prio) {
|
||||||
case MU_MSG_PRIORITY_LOW: return "low";
|
|
||||||
case MU_MSG_PRIORITY_NORMAL: return "normal";
|
case MU_MSG_PRIORITY_LOW:
|
||||||
case MU_MSG_PRIORITY_HIGH: return "high";
|
return "low";
|
||||||
|
|
||||||
|
case MU_MSG_PRIORITY_NONE:
|
||||||
|
case MU_MSG_PRIORITY_NORMAL:
|
||||||
|
return "normal";
|
||||||
|
|
||||||
|
case MU_MSG_PRIORITY_HIGH:
|
||||||
|
return "high";
|
||||||
|
|
||||||
default:
|
default:
|
||||||
g_warning ("%s: invalid priority %d", __FUNCTION__, prio);
|
g_warning ("%s: invalid priority %d", __FUNCTION__, prio);
|
||||||
return "Err";
|
return "<error>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user