modify event name
authorwang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>
Mon, 15 Apr 2019 05:46:41 +0000 (13:46 +0800)
committerwang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>
Mon, 15 Apr 2019 05:46:41 +0000 (13:46 +0800)
Change-Id: Ia088bb5ce6f67dc379825d2781eb246e96c5e0ad

include/libhomescreen.hpp
src/libhomescreen.cpp

index afc22f0..1b7723a 100644 (file)
@@ -48,7 +48,7 @@ public:
                Event_ReplyShowWindow,
                Event_ShowNotification,
                Event_ShowInformation,
-               Event_RegisterShortCut
+               Event_RegisterShortcut
        };
 
        /* Key for json obejct */
index f0d7cfe..8397691 100644 (file)
@@ -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);
                }