From a0058b3838998f3f94d779567c6a8f05677e7035 Mon Sep 17 00:00:00 2001 From: wang_zhiqiang Date: Mon, 15 Apr 2019 13:46:41 +0800 Subject: modify event name Change-Id: Ia088bb5ce6f67dc379825d2781eb246e96c5e0ad --- include/libhomescreen.hpp | 2 +- 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); } -- cgit 1.2.3-korg