forked from enlightenment/efl
call clicked on delete of the hover so things can be shut down.
also a fixme - bad me. i used internal calls. SVN revision: 37837
This commit is contained in:
parent
793b34f2f9
commit
0fceb721f6
|
@ -323,6 +323,7 @@ _text_to_mkup(const char *text)
|
||||||
|
|
||||||
for (;;)
|
for (;;)
|
||||||
{
|
{
|
||||||
|
// FIXME: use evas_string_char_next_get()
|
||||||
ch = evas_common_font_utf8_get_next((unsigned char *)(text), &pos);
|
ch = evas_common_font_utf8_get_next((unsigned char *)(text), &pos);
|
||||||
if (ch <= 0) break;
|
if (ch <= 0) break;
|
||||||
if (ch == '\n') str = _str_append(str, "<br>", &str_len, &str_alloc);
|
if (ch == '\n') str = _str_append(str, "<br>", &str_len, &str_alloc);
|
||||||
|
@ -333,6 +334,7 @@ _text_to_mkup(const char *text)
|
||||||
char tstr[16];
|
char tstr[16];
|
||||||
|
|
||||||
pos2 = pos;
|
pos2 = pos;
|
||||||
|
// FIXME: use evas_string_char_next_get()
|
||||||
ch = evas_common_font_utf8_get_next((unsigned char *)(text), &pos2);
|
ch = evas_common_font_utf8_get_next((unsigned char *)(text), &pos2);
|
||||||
strncpy(tstr, text + pos, pos2 - pos);
|
strncpy(tstr, text + pos, pos2 - pos);
|
||||||
tstr[pos2 - pos] = 0;
|
tstr[pos2 - pos] = 0;
|
||||||
|
|
|
@ -37,6 +37,8 @@ static void
|
||||||
_del_pre_hook(Evas_Object *obj)
|
_del_pre_hook(Evas_Object *obj)
|
||||||
{
|
{
|
||||||
Widget_Data *wd = elm_widget_data_get(obj);
|
Widget_Data *wd = elm_widget_data_get(obj);
|
||||||
|
if (evas_object_visible_get(obj))
|
||||||
|
evas_object_smart_callback_call(obj, "clicked", NULL);
|
||||||
elm_hover_target_set(obj, NULL);
|
elm_hover_target_set(obj, NULL);
|
||||||
elm_hover_parent_set(obj, NULL);
|
elm_hover_parent_set(obj, NULL);
|
||||||
evas_object_event_callback_del(wd->hov, EVAS_CALLBACK_MOVE, _hov_move);
|
evas_object_event_callback_del(wd->hov, EVAS_CALLBACK_MOVE, _hov_move);
|
||||||
|
|
Loading…
Reference in New Issue