mirror of https://github.com/djcb/mu.git
* cleanup mu_msg_str_prio
This commit is contained in:
parent
e14703b58e
commit
0dc999ffb2
|
@ -75,12 +75,20 @@ const char*
|
|||
mu_msg_str_prio (MuMsgPriority prio)
|
||||
{
|
||||
switch (prio) {
|
||||
case MU_MSG_PRIORITY_LOW: return "low";
|
||||
case MU_MSG_PRIORITY_NORMAL: return "normal";
|
||||
case MU_MSG_PRIORITY_HIGH: return "high";
|
||||
|
||||
case MU_MSG_PRIORITY_LOW:
|
||||
return "low";
|
||||
|
||||
case MU_MSG_PRIORITY_NONE:
|
||||
case MU_MSG_PRIORITY_NORMAL:
|
||||
return "normal";
|
||||
|
||||
case MU_MSG_PRIORITY_HIGH:
|
||||
return "high";
|
||||
|
||||
default:
|
||||
g_warning ("%s: invalid priority %d", __FUNCTION__, prio);
|
||||
return "Err";
|
||||
return "<error>";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue