This is an automated email from the git hooks/post-receive script.

git pushed a commit to reference refs/pull/289/head
in repository efl.

View the commit online.

commit f1022912b1206aef4f92447e25090b654e5359ec
Author: Cedric BAIL <[email protected]>
AuthorDate: Sun Nov 29 13:12:08 2026 -0600

    evas/gesture: do not require a config provider
    
    Only Elementary provides EFL_CONFIG_INTERFACE on the main loop, so a
    plain Evas canvas got a NULL config and creating it warned
    "NULL passed to function efl_event_callback_priority_add()". Skip the
    config hooks when there is none and keep the default finger size; the
    destructor already handled a NULL config.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
---
 src/lib/evas/gesture/efl_canvas_gesture_manager.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/lib/evas/gesture/efl_canvas_gesture_manager.c b/src/lib/evas/gesture/efl_canvas_gesture_manager.c
index 38071d40e8..387eff591f 100644
--- a/src/lib/evas/gesture/efl_canvas_gesture_manager.c
+++ b/src/lib/evas/gesture/efl_canvas_gesture_manager.c
@@ -148,9 +148,10 @@ _efl_canvas_gesture_manager_efl_object_constructor(Eo *obj, Efl_Canvas_Gesture_M
    pd->m_object_gestures = NULL;
    pd->m_gestures_to_delete = eina_array_new(1);;
 
-   /* this needs to always be present */
+   /* only Elementary provides a config: plain Evas users have none */
    config = efl_provider_find(efl_main_loop_get(), EFL_CONFIG_INTERFACE);
-   efl_event_callback_add(config, EFL_CONFIG_EVENT_CONFIG_CHANGED, _gesture_manager_config_changed, pd);
+   if (config)
+     efl_event_callback_add(config, EFL_CONFIG_EVENT_CONFIG_CHANGED, _gesture_manager_config_changed, pd);
 
    //Register all types of recognizers at very first time.
    efl_gesture_manager_recognizer_register(obj, efl_add(EFL_CANVAS_GESTURE_RECOGNIZER_TAP_CLASS, obj));
@@ -162,7 +163,7 @@ _efl_canvas_gesture_manager_efl_object_constructor(Eo *obj, Efl_Canvas_Gesture_M
    efl_gesture_manager_recognizer_register(obj, efl_add(EFL_CANVAS_GESTURE_RECOGNIZER_ROTATE_CLASS, obj));
    efl_gesture_manager_recognizer_register(obj, efl_add(EFL_CANVAS_GESTURE_RECOGNIZER_ZOOM_CLASS, obj));
    /* realistically this will never fail, but the whole gesture layer breaks if this is 0 */
-   if (!getenv("EFL_RUN_IN_TREE"))
+   if (config && !getenv("EFL_RUN_IN_TREE"))
      finger_size = efl_config_int_get(config, "glayer_tap_finger_size");
    if (finger_size < 1) finger_size = 10;
    _update_finger_sizes(pd, finger_size);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to