From ef9de1601498081b2529816ae607e3234bbb14c4 Mon Sep 17 00:00:00 2001 From: Sungmin Kwak Date: Mon, 30 Mar 2015 10:57:37 +0900 Subject: [PATCH] Add on_check_option_window_availability() Change-Id: I69870a52b380ccc31055c2e8bac011e22ef97c2b --- src/inputmethod.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/inputmethod.cpp b/src/inputmethod.cpp index 9f0b377..16d6ed4 100644 --- a/src/inputmethod.cpp +++ b/src/inputmethod.cpp @@ -54,6 +54,7 @@ class CCoreEventCallback : public ISCLCoreEventCallback void on_set_accessibility_state(sclboolean state); void on_create_option_window(sclwindow window, SCLOptionWindowType type); void on_destroy_option_window(sclwindow window); + void on_check_option_window_availability(sclboolean *ret); }; typedef struct @@ -316,6 +317,16 @@ void CCoreEventCallback::on_destroy_option_window(sclwindow window) } } +void CCoreEventCallback::on_check_option_window_availability(sclboolean *ret) +{ + if (ret) { + if (g_event_callback.option_window_created) // Instead of each 3rd party keyboard, inputmethod will reply the availability of the option (setting). + *ret = true; + else + *ret = false; + } +} + int ime_run(ime_callback_s *basic_cb, void *user_data) { if (g_running) { -- 2.7.4