netstar pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=633b374b8b9eef92e1cbc5f6a24692c4b7f3dd65

commit 633b374b8b9eef92e1cbc5f6a24692c4b7f3dd65
Author: Alastair Poole <nets...@gmail.com>
Date:   Fri Mar 5 10:40:33 2021 +0000

    clock: defer edje signal process after MOUSE_DOWN cb.
    
    Setting the MOUSE_DOWN callback before
    edje_object_signal_message_process improves the reliabilty of the
    event. I don't understand why that could be interfering but this
    is more-or-less a cosmetic change.
---
 src/modules/clock/e_mod_main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/modules/clock/e_mod_main.c b/src/modules/clock/e_mod_main.c
index 638d7e847..0923423f5 100644
--- a/src/modules/clock/e_mod_main.c
+++ b/src/modules/clock/e_mod_main.c
@@ -643,8 +643,6 @@ _gc_init(E_Gadcon *gc, const char *name, const char *id, 
const char *style)
      edje_object_signal_emit(o, "e,state,seconds,off", "e");
 
    edje_object_part_text_set(o, "e.text.today", todaystr);
-   edje_object_message_signal_process(o);
-   evas_object_show(o);
 
    gcc = e_gadcon_client_new(gc, name, id, style, o);
    gcc->data = inst;
@@ -656,6 +654,8 @@ _gc_init(E_Gadcon *gc, const char *name, const char *id, 
const char *style)
                                   EVAS_CALLBACK_MOUSE_DOWN,
                                   _clock_cb_mouse_down,
                                   inst);
+   edje_object_message_signal_process(o);
+   evas_object_show(o);
 
    clock_instances = eina_list_append(clock_instances, inst);
 

-- 


Reply via email to