+ if (max_match_cnt == 0 || max_match_cnt == 1) {
+ elm_object_disabled_set(m_find_word_prev_button, EINA_TRUE);
+ elm_object_disabled_set(m_find_word_next_button, EINA_TRUE);
+ } else if (index == 0 || index == 1) {
+ elm_object_disabled_set(m_find_word_prev_button, EINA_TRUE);
+ elm_object_disabled_set(m_find_word_next_button, EINA_FALSE);
+ if (index == 0 || (index == 1 && elm_object_focus_get(m_find_word_cancel_button)))
+ elm_object_focus_set(m_find_word_cancel_button, EINA_TRUE);
+ } else if (index == max_match_cnt) {
+ elm_object_disabled_set(m_find_word_prev_button, EINA_FALSE);
+ elm_object_disabled_set(m_find_word_next_button, EINA_TRUE);
+ elm_object_focus_set(m_find_word_cancel_button, EINA_TRUE);
+ } else {
+ if (elm_object_disabled_get(m_find_word_prev_button))
+ elm_object_disabled_set(m_find_word_prev_button, EINA_FALSE);
+ if (elm_object_disabled_get(m_find_word_next_button))
+ elm_object_disabled_set(m_find_word_next_button, EINA_FALSE);
+ }
+}