diff options
author | wang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com> | 2019-04-15 13:46:41 +0800 |
---|---|---|
committer | wang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com> | 2019-04-15 13:46:41 +0800 |
commit | a0058b3838998f3f94d779567c6a8f05677e7035 (patch) | |
tree | de98320d28c25a267c1f970e04cf26cb01ed3991 | |
parent | 8e3a62090a74c72d4c9fc39559d9996531d97b66 (diff) |
modify event name
Change-Id: Ia088bb5ce6f67dc379825d2781eb246e96c5e0ad
-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); } |