<label xml:lang="zh-tw">Tizen 鍵盤</label>
<icon/>
</ui-application>
-<ui-application appid="org.tizen.ise-default-setting" exec="ise-default-setting" launch_mode="single" mainapp="true" nodisplay="true" taskmanage="false" multiple="true" type="capp" hw-acceleration="use-GL">
+<ui-application appid="org.tizen.ise-default-setting" exec="ise-default-setting" launch_mode="caller" mainapp="true" nodisplay="true" taskmanage="false" multiple="true" type="capp" hw-acceleration="use-GL">
<category name="http://tizen.org/category/ime-setting"/>
<label>Tizen keyboard setting</label>
<icon/>
goto end;
}
+ app_control_add_extra_data(app_control, "caller", "ise-default");
+ app_control_set_launch_mode(app_control, APP_CONTROL_LAUNCH_MODE_GROUP);
+
ret = app_control_send_launch_request(app_control, NULL, NULL);
if (ret != APP_CONTROL_ERROR_NONE) {
goto end;
#define CHECK_STATE "check_state"
#endif
+enum LAUNCH_MODE {
+ LAUNCH_MODE_IME,
+ LAUNCH_MODE_OTHER
+};
+
enum SETTING_ITEM_ID {
SETTING_ITEM_ID_INPUT_LANGUAGE_TITLE,
SETTING_ITEM_ID_CUR_LANGUAGE,
#endif
};
+static LAUNCH_MODE g_launch_mode = LAUNCH_MODE_OTHER;
static OPTION_ELEMENTS option_elements[OPTION_WINDOW_TYPE_MAX];
extern CONFIG_VALUES g_config_values;
app_control(app_control_h app_control, void *data)
{
/* Handle the launch request. */
+ char *caller = NULL;
+ g_launch_mode = LAUNCH_MODE_OTHER;
Evas_Object *window = elm_win_util_standard_add("Option window", "Option window");
if (!window) return;
elm_win_wm_rotation_available_rotations_set(window, rots, (sizeof(rots) / sizeof(int)));
elm_win_indicator_mode_set(window, ELM_WIN_INDICATOR_SHOW);
+ app_control_get_extra_data(app_control, "caller", &caller);
+
+ if (caller) {
+ if (strcmp(caller, "ise-default") == 0)
+ g_launch_mode = LAUNCH_MODE_IME;
+
+ free(caller);
+ }
+
option_window_created(window, OPTION_WINDOW_TYPE_SETTING_APPLICATION);
}
{
LOGD("");
/* Take necessary actions when application becomes invisible. */
+ if (g_launch_mode == LAUNCH_MODE_IME) {
+ ui_app_exit();
+ }
}
static void