diff options
-rw-r--r-- | include/libhomescreen.hpp | 2 | ||||
-rw-r--r-- | src/libhomescreen.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/libhomescreen.hpp b/include/libhomescreen.hpp index afc22f0..1b7723a 100644 --- a/include/libhomescreen.hpp +++ b/include/libhomescreen.hpp @@ -48,7 +48,7 @@ public: Event_ReplyShowWindow, Event_ShowNotification, Event_ShowInformation, - Event_RegisterShortCut + Event_RegisterShortcut }; /* Key for json obejct */ diff --git a/src/libhomescreen.cpp b/src/libhomescreen.cpp index f0d7cfe..8397691 100644 --- a/src/libhomescreen.cpp +++ b/src/libhomescreen.cpp @@ -328,7 +328,7 @@ void LibHomeScreen::set_event_handler(enum EventType et, handler_func f) case Event_ShowInformation: this->subscribe(LibHomeScreen::event_list[6]); break; - case Event_RegisterShortCut: + case Event_RegisterShortcut: this->subscribe(LibHomeScreen::event_list[7]); break; } @@ -720,7 +720,7 @@ void LibHomeScreen::on_event(void *closure, const char *event, struct afb_wsj1_m } } else if (strcasecmp(event_type, LibHomeScreen::event_list[7].c_str()) == 0) { - auto i = this->handlers.find(Event_RegisterShortCut); + auto i = this->handlers.find(Event_RegisterShortcut); if ( i != this->handlers.end() ) { i->second(json_data); } |