efl_ui_selection: give this event a better name

this event does not get emitted when selection per se changes, it gets
emitted when the selection in the window manager changes. we should
prefix this even with that.

ref T7476

Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es>
Differential Revision: https://phab.enlightenment.org/D8424
This commit is contained in:
Marcel Hollerbach 2019-03-20 15:01:23 +01:00
parent 7069b0efc0
commit decfca4f23
2 changed files with 3 additions and 3 deletions

View File

@ -40,6 +40,6 @@ mixin @beta Efl.Ui.Selection {
} }
} }
events { events {
selection,changed: Efl.Ui.Selection_Changed; [[Called when display server's selection has changed]] wm_selection,changed: Efl.Ui.Selection_Changed; [[Called when display server's selection has changed]]
} }
} }

View File

@ -880,7 +880,7 @@ _x11_fixes_selection_notify(void *data, int t EINA_UNUSED, void *event)
_e->exists = e.exist; _e->exists = e.exist;
ecore_event_add(ELM_CNP_EVENT_SELECTION_CHANGED, _e, NULL, NULL); ecore_event_add(ELM_CNP_EVENT_SELECTION_CHANGED, _e, NULL, NULL);
efl_event_callback_call(sel->owner, EFL_UI_SELECTION_EVENT_SELECTION_CHANGED, &e); efl_event_callback_call(sel->owner, EFL_UI_SELECTION_EVENT_WM_SELECTION_CHANGED, &e);
return ECORE_CALLBACK_RENEW; return ECORE_CALLBACK_RENEW;
} }
@ -2650,7 +2650,7 @@ _wl_selection_changed(void *data, int type EINA_UNUSED, void *event)
_e->exists = e.exist; _e->exists = e.exist;
ecore_event_add(ELM_CNP_EVENT_SELECTION_CHANGED, _e, _wl_selection_changed_free, ev->display); ecore_event_add(ELM_CNP_EVENT_SELECTION_CHANGED, _e, _wl_selection_changed_free, ev->display);
efl_event_callback_call(sel->request_obj, EFL_UI_SELECTION_EVENT_SELECTION_CHANGED, &e); efl_event_callback_call(sel->request_obj, EFL_UI_SELECTION_EVENT_WM_SELECTION_CHANGED, &e);
return ECORE_CALLBACK_RENEW; return ECORE_CALLBACK_RENEW;
} }