Commit 5079caf6 authored by Simon Morlat's avatar Simon Morlat
Browse files

fix mysterious crash

parent f2b26e93
......@@ -30,26 +30,30 @@ typedef int lppid_t;
typedef pid_t lppid_t;
static const gchar *_bc_status_notifier_category_to_string[] = {
const gchar *bc_status_notifier_category_to_string(BcStatusNotifierCategory c) {
return _bc_status_notifier_category_to_string[c];
case BcStatusNotifierCategoryApplicationStatus:
return "ApplicationStatus";
case BcStatusNotifierCategoryCommunications:
return "Communications";
case BcStatusNotifierCategorySystemService:
return "SystemServices";
case BcStatusNotifierCategoryHardware:
return "Hardware";
return "bad category";
static const gchar *_bc_status_notifier_status_to_string[] = {
const gchar *bc_status_notifier_status_to_string(BcStatusNotifierStatus s) {
return _bc_status_notifier_status_to_string[s];
case BcStatusNotifierStatusPassive:
return "Passive";
case BcStatusNotifierStatusActive:
return "Active";
case BcStatusNotifierStatusNeedsAttention:
return "NeedsAttention";
return "badstatus";
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment