forked from enlightenment/efl
Ui text: bring back some atspi support
This commit is contained in:
parent
420d9373cf
commit
51e4ec2d5c
|
@ -4455,51 +4455,30 @@ _efl_ui_text_class_constructor(Eo_Class *klass)
|
||||||
EOLIAN static Eina_Unicode
|
EOLIAN static Eina_Unicode
|
||||||
_efl_ui_text_elm_interface_atspi_text_character_get(Eo *obj, Efl_Ui_Text_Data *_pd EINA_UNUSED, int offset)
|
_efl_ui_text_elm_interface_atspi_text_character_get(Eo *obj, Efl_Ui_Text_Data *_pd EINA_UNUSED, int offset)
|
||||||
{
|
{
|
||||||
#if 0
|
const char *txt;
|
||||||
char *txt;
|
|
||||||
int idx = 0;
|
int idx = 0;
|
||||||
Eina_Unicode ret = 0;
|
Eina_Unicode ret = 0;
|
||||||
if (offset < 0) return ret;
|
if (offset < 0) return ret;
|
||||||
|
|
||||||
txt = _elm_util_mkup_to_text(efl_ui_text_entry_get(obj));
|
if (_pd->password) return ENTRY_PASSWORD_MASK_CHARACTER;
|
||||||
|
|
||||||
|
txt = efl_text_get(obj);
|
||||||
if (!txt) return ret;
|
if (!txt) return ret;
|
||||||
|
|
||||||
ret = eina_unicode_utf8_next_get(txt, &idx);
|
ret = eina_unicode_utf8_next_get(txt, &idx);
|
||||||
while (offset--) ret = eina_unicode_utf8_next_get(txt, &idx);
|
while (offset--) ret = eina_unicode_utf8_next_get(txt, &idx);
|
||||||
|
|
||||||
free(txt);
|
|
||||||
|
|
||||||
if (_pd->password)
|
|
||||||
ret = ENTRY_PASSWORD_MASK_CHARACTER;
|
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
#else
|
|
||||||
(void) obj;
|
|
||||||
(void) _pd;
|
|
||||||
(void) offset;
|
|
||||||
return 0;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
EOLIAN static int
|
EOLIAN static int
|
||||||
_efl_ui_text_elm_interface_atspi_text_character_count_get(Eo *obj, Efl_Ui_Text_Data *_pd EINA_UNUSED)
|
_efl_ui_text_elm_interface_atspi_text_character_count_get(Eo *obj, Efl_Ui_Text_Data *_pd EINA_UNUSED)
|
||||||
{
|
{
|
||||||
#if 0
|
const char *txt;
|
||||||
char *txt;
|
|
||||||
int ret = -1;
|
|
||||||
|
|
||||||
txt = _elm_util_mkup_to_text(efl_ui_text_entry_get(obj));
|
txt = efl_text_get(obj);
|
||||||
if (!txt) return ret;
|
if (!txt) return -1;
|
||||||
|
return eina_unicode_utf8_get_len(txt);
|
||||||
ret = eina_unicode_utf8_get_len(txt);
|
|
||||||
free(txt);
|
|
||||||
|
|
||||||
return ret;
|
|
||||||
#else
|
|
||||||
(void) obj;
|
|
||||||
(void) _pd;
|
|
||||||
return 0;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
EOLIAN static char*
|
EOLIAN static char*
|
||||||
|
@ -4948,15 +4927,8 @@ _efl_ui_text_elm_interface_atspi_text_default_attributes_get(Eo *obj EINA_UNUSED
|
||||||
EOLIAN static Eina_Bool
|
EOLIAN static Eina_Bool
|
||||||
_efl_ui_text_elm_interface_atspi_text_editable_content_set(Eo *obj, Efl_Ui_Text_Data *_pd EINA_UNUSED, const char *content)
|
_efl_ui_text_elm_interface_atspi_text_editable_content_set(Eo *obj, Efl_Ui_Text_Data *_pd EINA_UNUSED, const char *content)
|
||||||
{
|
{
|
||||||
#if 0
|
efl_text_set(obj, content);
|
||||||
efl_ui_text_entry_set(obj, content);
|
|
||||||
return EINA_TRUE;
|
return EINA_TRUE;
|
||||||
#else
|
|
||||||
(void) obj;
|
|
||||||
(void) _pd;
|
|
||||||
(void) content;
|
|
||||||
return EINA_TRUE;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
EOLIAN static Eina_Bool
|
EOLIAN static Eina_Bool
|
||||||
|
|
Loading…
Reference in New Issue