+ return btn;
+ } else if (!strcmp(part, "elm.icon.1.touch_area") || (!strcmp(part, "elm.icon.2.touch_area"))) {
+ Evas_Object* btn = elm_button_add(obj);
+ elm_object_style_set(btn, "touch_area");
+ evas_object_size_hint_weight_set(btn, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ evas_object_size_hint_align_set(btn, EVAS_HINT_FILL, EVAS_HINT_FILL);
+ string path = get_resource_path();
+ if (!strcmp(part, "elm.icon.1.touch_area")) {
+ evas_object_layer_set(btn, 32000);
+ if (!strcmp(first_input_type, "input_voice")) {
+ evas_object_smart_callback_add(btn, "clicked", _stt_clicked_cb, app_data);
+ elm_atspi_accessible_name_set(btn, "IDS_IME_MBODY_VOICE_INPUT");
+ elm_atspi_accessible_translation_domain_set(btn, PACKAGE);
+ } else if (!strcmp(first_input_type, "input_emoticon")) {
+ evas_object_smart_callback_add(btn, "clicked", _emoticon_clicked_cb, app_data);
+ elm_atspi_accessible_name_set(btn, "IDS_COM_HEADER_EMOTICON");
+ elm_atspi_accessible_translation_domain_set(btn, PACKAGE);
+ } else if (!strcmp(first_input_type, "input_keyboard")) {
+ evas_object_propagate_events_set(btn, EINA_FALSE);
+ evas_object_smart_callback_add(btn, "clicked", _keyboard_clicked_cb, app_data);
+ elm_atspi_accessible_name_set(btn, "IDS_COM_OPT_KEYBOARD");
+ elm_atspi_accessible_translation_domain_set(btn, PACKAGE);
+ }
+ } else if (!strcmp(part, "elm.icon.2.touch_area")){
+ evas_object_layer_set(btn, 32000);
+ if (!strcmp(second_input_type, "input_voice")) {
+ evas_object_smart_callback_add(btn, "clicked", _stt_clicked_cb, app_data);
+ elm_atspi_accessible_name_set(btn, "IDS_IME_MBODY_VOICE_INPUT");
+ elm_atspi_accessible_translation_domain_set(btn, PACKAGE);
+ } else if (!strcmp(second_input_type, "input_emoticon")) {
+ evas_object_smart_callback_add(btn, "clicked", _emoticon_clicked_cb, app_data);
+ elm_atspi_accessible_name_set(btn, "IDS_COM_HEADER_EMOTICON");
+ elm_atspi_accessible_translation_domain_set(btn, PACKAGE);
+ } else if (!strcmp(second_input_type, "input_keyboard")) {
+ evas_object_propagate_events_set(btn, EINA_FALSE);
+ evas_object_smart_callback_add(btn, "clicked", _keyboard_clicked_cb, app_data);
+ elm_atspi_accessible_name_set(btn, "IDS_COM_OPT_KEYBOARD");
+ elm_atspi_accessible_translation_domain_set(btn, PACKAGE);
+ }
+ }
+ return btn;
+ } else if (!strcmp(part, "base")) {
+ Evas_Object* btn = elm_button_add(obj);
+ elm_object_style_set(btn, "ime_transparent");
+ return btn;