forked from enlightenment/enlightenment
ummm randr.. why do pointer differently for rotate.. when e_poitner
already does it? fix - use e_pointer. SVN revision: 81018
This commit is contained in:
parent
8c3c6c57a0
commit
1f7c977b79
|
@ -851,36 +851,19 @@ _e_smart_cb_resize_stop(void *data, Evas_Object *obj __UNUSED__, const char *emi
|
||||||
static void
|
static void
|
||||||
_e_smart_cb_rotate_mouse_in(void *data, Evas_Object *obj __UNUSED__, const char *emission __UNUSED__, const char *source __UNUSED__)
|
_e_smart_cb_rotate_mouse_in(void *data, Evas_Object *obj __UNUSED__, const char *emission __UNUSED__, const char *source __UNUSED__)
|
||||||
{
|
{
|
||||||
E_Smart_Data *sd;
|
E_Manager *man;
|
||||||
Ecore_Evas *ee;
|
|
||||||
Ecore_X_Window win;
|
|
||||||
Ecore_X_Cursor cur;
|
|
||||||
|
|
||||||
if (!(sd = data)) return;
|
man = e_manager_current_get();
|
||||||
|
e_pointer_type_push(man->pointer, obj, "rotate");
|
||||||
/* changing cursors for rotate is done this way because e_pointer
|
|
||||||
* does not support all available X cursors */
|
|
||||||
ee = ecore_evas_ecore_evas_get(evas_object_evas_get(sd->o_frame));
|
|
||||||
win = (Ecore_X_Window)ecore_evas_window_get(ee);
|
|
||||||
|
|
||||||
cur = ecore_x_cursor_shape_get(ECORE_X_CURSOR_EXCHANGE);
|
|
||||||
ecore_x_window_cursor_set(win, cur);
|
|
||||||
ecore_x_cursor_free(cur);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_e_smart_cb_rotate_mouse_out(void *data, Evas_Object *obj __UNUSED__, const char *emission __UNUSED__, const char *source __UNUSED__)
|
_e_smart_cb_rotate_mouse_out(void *data, Evas_Object *obj __UNUSED__, const char *emission __UNUSED__, const char *source __UNUSED__)
|
||||||
{
|
{
|
||||||
E_Smart_Data *sd;
|
E_Manager *man;
|
||||||
Ecore_Evas *ee;
|
|
||||||
Ecore_X_Window win;
|
|
||||||
|
|
||||||
if (!(sd = data)) return;
|
man = e_manager_current_get();
|
||||||
|
e_pointer_type_pop(man->pointer, obj, "rotate");
|
||||||
/* reset cursor back to default */
|
|
||||||
ee = ecore_evas_ecore_evas_get(evas_object_evas_get(sd->o_frame));
|
|
||||||
win = (Ecore_X_Window)ecore_evas_window_get(ee);
|
|
||||||
ecore_x_window_cursor_set(win, 0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in New Issue