termio/win: use Elementary_Cursor.h

This commit is contained in:
Boris Faure 2020-11-29 15:27:34 +01:00
parent 665a3acbcf
commit 1fe87a4b2c
Signed by: borisfaure
GPG Key ID: 35C0410516166BE8
2 changed files with 5 additions and 3 deletions

View File

@ -1,6 +1,7 @@
#include "private.h"
#include <Elementary.h>
#include <Elementary_Cursor.h>
#include <Ecore_Input.h>
#include "termio.h"
@ -1625,7 +1626,7 @@ _update_link(Termio *sd, Eina_Bool same_geom)
}
sd->link.objs = eina_list_append(sd->link.objs, o);
elm_object_cursor_set(o, "hand2");
elm_object_cursor_set(o, ELM_CURSOR_HAND2);
evas_object_show(o);
evas_object_event_callback_add(o, EVAS_CALLBACK_MOUSE_DOWN,
_cb_link_down, obj);
@ -1678,7 +1679,7 @@ _hyperlink_end(Termio *sd,
Eina_Bool popup_exists;
sd->link.objs = eina_list_append(sd->link.objs, o);
elm_object_cursor_set(o, "hand2");
elm_object_cursor_set(o, ELM_CURSOR_HAND2);
evas_object_show(o);
evas_object_event_callback_add(o, EVAS_CALLBACK_MOUSE_DOWN,
_cb_link_down, sd->self);

View File

@ -2,6 +2,7 @@
#include <assert.h>
#include <Elementary.h>
#include <Elementary_Cursor.h>
#include <Ecore_Input.h>
#include <Ecore_IMF.h>
#include <Ecore_IMF_Evas.h>
@ -4214,7 +4215,7 @@ _tab_drag_start(void *data EINA_UNUSED)
evas_pointer_canvas_xy_get(_tab_drag->e, &mx, &my);
evas_object_move(_tab_drag->icon, mx - w/2, my - h/2);
evas_object_raise(o);
elm_object_cursor_set(term->bg, "hand2");
elm_object_cursor_set(term->bg, ELM_CURSOR_HAND2);
term->has_bg_cursor = EINA_TRUE;
evas_object_show(o);